Permalink
Browse files

clrf, tabs to spaces

  • Loading branch information...
1 parent 0c041fc commit 68f1ca505fa37c630d98a60ec17361b555f7938b @ppekrol ppekrol committed Oct 30, 2015
Showing 1,532 changed files with 125,411 additions and 127,784 deletions.
@@ -14,14 +14,14 @@
namespace Raven.Bundles.Authorization.Controllers
{
- public class IsAllowedController : BaseDatabaseApiController
- {
- [HttpGet]
- [RavenRoute("authorization/IsAllowed/{*userId}")]
- [RavenRoute("databases/{databaseName}/authorization/IsAllowed/{*userId}")]
- public HttpResponseMessage IsAllowed(string userId)
- {
- //var userId = id;
+ public class IsAllowedController : BaseDatabaseApiController
+ {
+ [HttpGet]
+ [RavenRoute("authorization/IsAllowed/{*userId}")]
+ [RavenRoute("databases/{databaseName}/authorization/IsAllowed/{*userId}")]
+ public HttpResponseMessage IsAllowed(string userId)
+ {
+ //var userId = id;
var docIds = GetQueryStringValues("id");
var operation = GetQueryStringValue("operation");
@@ -1,7 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -16,11 +16,11 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
+ <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
+ <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Reactive.Interfaces" publicKeyToken="31bf3856ad364e35" culture="neutral" />
@@ -3,4 +3,4 @@
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net45" />
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
-</packages>
+</packages>
@@ -12,49 +12,49 @@
namespace Raven.Bundles.CascadeDelete
{
- /// <summary>
- /// CascadeDeleteContext is required (and we are not using Database.DisableAllTriggersForCurrentThread()) for two reasons:
- /// a) We are modifying the database while in operation, and we don't want to change the behavior of other bundles.
- /// For example, we do want to replicate a cascade delete resulting from this bundle.
- /// b) We are using the context to track state as well.
- /// </summary>
- public static class CascadeDeleteContext
- {
- private static readonly Raven.Abstractions.Threading.ThreadLocal<bool> CurrentlyInContext = new Raven.Abstractions.Threading.ThreadLocal<bool>();
+ /// <summary>
+ /// CascadeDeleteContext is required (and we are not using Database.DisableAllTriggersForCurrentThread()) for two reasons:
+ /// a) We are modifying the database while in operation, and we don't want to change the behavior of other bundles.
+ /// For example, we do want to replicate a cascade delete resulting from this bundle.
+ /// b) We are using the context to track state as well.
+ /// </summary>
+ public static class CascadeDeleteContext
+ {
+ private static readonly Raven.Abstractions.Threading.ThreadLocal<bool> CurrentlyInContext = new Raven.Abstractions.Threading.ThreadLocal<bool>();
- private static readonly Raven.Abstractions.Threading.ThreadLocal<HashSet<string>> DeletedDocuments =
- new Raven.Abstractions.Threading.ThreadLocal<HashSet<string>>(() => new HashSet<string>(StringComparer.InvariantCultureIgnoreCase));
+ private static readonly Raven.Abstractions.Threading.ThreadLocal<HashSet<string>> DeletedDocuments =
+ new Raven.Abstractions.Threading.ThreadLocal<HashSet<string>>(() => new HashSet<string>(StringComparer.InvariantCultureIgnoreCase));
- public static bool IsInCascadeDeleteContext
- {
- get
- {
- return CurrentlyInContext.Value;
- }
- }
+ public static bool IsInCascadeDeleteContext
+ {
+ get
+ {
+ return CurrentlyInContext.Value;
+ }
+ }
- public static bool HasAlreadyDeletedDocument(string key)
- {
- return DeletedDocuments.Value.Contains(key);
- }
+ public static bool HasAlreadyDeletedDocument(string key)
+ {
+ return DeletedDocuments.Value.Contains(key);
+ }
- public static void AddDeletedDocument(string key)
- {
- DeletedDocuments.Value.Add(key);
- }
+ public static void AddDeletedDocument(string key)
+ {
+ DeletedDocuments.Value.Add(key);
+ }
- public static IDisposable Enter()
- {
- var oldCurrentlyInContext = CurrentlyInContext.Value;
- var oldDeletedDocuments = DeletedDocuments.Value;
- CurrentlyInContext.Value = true;
- DeletedDocuments.Value = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
- return new DisposableAction(delegate
- {
- CurrentlyInContext.Value = oldCurrentlyInContext;
- DeletedDocuments.Value = oldDeletedDocuments;
- });
- }
- }
+ public static IDisposable Enter()
+ {
+ var oldCurrentlyInContext = CurrentlyInContext.Value;
+ var oldDeletedDocuments = DeletedDocuments.Value;
+ CurrentlyInContext.Value = true;
+ DeletedDocuments.Value = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
+ return new DisposableAction(delegate
+ {
+ CurrentlyInContext.Value = oldCurrentlyInContext;
+ DeletedDocuments.Value = oldDeletedDocuments;
+ });
+ }
+ }
}
@@ -1,7 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -8,11 +8,11 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
+ <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
+ <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Reactive.Interfaces" publicKeyToken="31bf3856ad364e35" culture="neutral" />
@@ -11,11 +11,11 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
+ <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
+ <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Reactive.Interfaces" publicKeyToken="31bf3856ad364e35" culture="neutral" />
@@ -1,7 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -21,20 +21,20 @@ public class LiveTestDatabaseDocumentPutTrigger : AbstractPutTrigger
private const int QuotasSoftMarginInKb = (int)(0.75 * QuotasHardLimitInKb);
- public override void OnPut(string key, RavenJObject jsonReplicationDocument, RavenJObject metadata, TransactionInformation transactionInformation)
- {
- if (string.IsNullOrEmpty(Database.Name) == false && Database.Name != Constants.SystemDatabase)
- return;
+ public override void OnPut(string key, RavenJObject jsonReplicationDocument, RavenJObject metadata, TransactionInformation transactionInformation)
+ {
+ if (string.IsNullOrEmpty(Database.Name) == false && Database.Name != Constants.SystemDatabase)
+ return;
if (key.StartsWith(Constants.Database.Prefix, StringComparison.OrdinalIgnoreCase) == false)
return;
- RavenJObject settings;
- RavenJToken value;
- if (jsonReplicationDocument.TryGetValue("Settings", out value) == false)
- jsonReplicationDocument["Settings"] = settings = new RavenJObject();
- else
- settings = (RavenJObject)value;
+ RavenJObject settings;
+ RavenJToken value;
+ if (jsonReplicationDocument.TryGetValue("Settings", out value) == false)
+ jsonReplicationDocument["Settings"] = settings = new RavenJObject();
+ else
+ settings = (RavenJObject)value;
EnsureQuotasBundleActivated(settings);
EnsureVoronIsSetAsStorageEngineAndIsRunningInMemory(settings);
@@ -1,7 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
@@ -12,7 +12,7 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
+ <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
@@ -24,4 +24,4 @@
</dependentAssembly>
</assemblyBinding>
</runtime>
-</configuration>
+</configuration>
@@ -1,7 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -117,12 +117,12 @@ public override VetoResult AllowPut(string key, RavenJObject document, RavenJObj
return VetoResult.Allowed;
}
- public override void OnPut(string key, RavenJObject jsonReplicationDocument, RavenJObject metadata, TransactionInformation transactionInformation)
- {
- if (key.StartsWith("Raven/"))
- {
- return;
- }
+ public override void OnPut(string key, RavenJObject jsonReplicationDocument, RavenJObject metadata, TransactionInformation transactionInformation)
+ {
+ if (key.StartsWith("Raven/"))
+ {
+ return;
+ }
var entityName = metadata.Value<string>(Constants.RavenEntityName) + "/";
@@ -8,11 +8,11 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
+ <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
+ <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Reactive.Interfaces" publicKeyToken="31bf3856ad364e35" culture="neutral" />
@@ -1,7 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -1,7 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Oops, something went wrong.

0 comments on commit 68f1ca5

Please sign in to comment.