1
0
mirror of https://github.com/bitwarden/server synced 2026-01-06 18:43:36 +00:00

Changed all C# control flow block statements to include space between keyword and open paren

This commit is contained in:
Chad Scharf
2020-03-27 14:36:37 -04:00
parent 943aea9a12
commit 9800b752c0
243 changed files with 2258 additions and 2258 deletions

View File

@@ -50,7 +50,7 @@ namespace Bit.Core.HostedServices
EnableDeadLetteringOnMessageExpiration = true,
}, new RuleDescription("default", new SqlFilter($"sys.Label != '{_subName}'")));
}
catch(MessagingEntityAlreadyExistsException) { }
catch (MessagingEntityAlreadyExistsException) { }
_subscriptionClient.RegisterMessageHandler(ProcessMessageAsync,
new MessageHandlerOptions(ExceptionReceivedHandlerAsync)
{
@@ -74,14 +74,14 @@ namespace Bit.Core.HostedServices
private async Task ProcessMessageAsync(Message message, CancellationToken cancellationToken)
{
if(message.Label != _subName && _applicationCacheService != null)
if (message.Label != _subName && _applicationCacheService != null)
{
switch((ApplicationCacheMessageType)message.UserProperties["type"])
switch ((ApplicationCacheMessageType)message.UserProperties["type"])
{
case ApplicationCacheMessageType.UpsertOrganizationAbility:
var upsertedOrgId = (Guid)message.UserProperties["id"];
var upsertedOrg = await _organizationRepository.GetByIdAsync(upsertedOrgId);
if(upsertedOrg != null)
if (upsertedOrg != null)
{
await _applicationCacheService.BaseUpsertOrganizationAbilityAsync(upsertedOrg);
}
@@ -94,7 +94,7 @@ namespace Bit.Core.HostedServices
break;
}
}
if(!cancellationToken.IsCancellationRequested)
if (!cancellationToken.IsCancellationRequested)
{
await _subscriptionClient.CompleteAsync(message.SystemProperties.LockToken);
}