Browse Source

Merge branch 'dev' into cotur/cms-kit/comments

pull/7757/head
Ahmet 6 years ago
parent
commit
7f1f45a34e
  1. 7
      framework/src/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme/Themes/Basic/LoginDisplay.razor
  2. 43
      framework/src/Volo.Abp.RabbitMQ/Volo/Abp/RabbitMQ/RabbitMqMessageConsumer.cs

7
framework/src/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme/Themes/Basic/LoginDisplay.razor

@ -1,11 +1,14 @@
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication @using Microsoft.AspNetCore.Components.WebAssembly.Authentication
@using Microsoft.Extensions.Localization
@using Volo.Abp.Users @using Volo.Abp.Users
@using Volo.Abp.MultiTenancy @using Volo.Abp.MultiTenancy
@using global::Localization.Resources.AbpUi
@inject ICurrentUser CurrentUser @inject ICurrentUser CurrentUser
@inject ICurrentTenant CurrentTenant @inject ICurrentTenant CurrentTenant
@inject IJSRuntime JsRuntime @inject IJSRuntime JsRuntime
@inject NavigationManager Navigation @inject NavigationManager Navigation
@inject SignOutSessionStateManager SignOutManager @inject SignOutSessionStateManager SignOutManager
@inject IStringLocalizer<AbpUiResource> UiLocalizer
<AuthorizeView> <AuthorizeView>
<Authorized> <Authorized>
<Dropdown> <Dropdown>
@ -28,12 +31,12 @@
} }
} }
<DropdownDivider /> <DropdownDivider />
<DropdownItem Clicked="BeginSignOut">Logout</DropdownItem> <DropdownItem Clicked="BeginSignOut">@UiLocalizer["Logout"]</DropdownItem>
</DropdownMenu> </DropdownMenu>
</Dropdown> </Dropdown>
</Authorized> </Authorized>
<NotAuthorized> <NotAuthorized>
<a class="nav-link" href="authentication/login">Log in</a> <a class="nav-link" href="authentication/login">@UiLocalizer["Login"]</a>
</NotAuthorized> </NotAuthorized>
</AuthorizeView> </AuthorizeView>
@code{ @code{

43
framework/src/Volo.Abp.RabbitMQ/Volo/Abp/RabbitMQ/RabbitMqMessageConsumer.cs

@ -90,29 +90,30 @@ namespace Volo.Abp.RabbitMQ
lock (ChannelSendSyncLock) lock (ChannelSendSyncLock)
{ {
QueueBindCommands.TryPeek(out var command); if (QueueBindCommands.TryPeek(out var command))
switch (command.Type)
{ {
case QueueBindType.Bind: switch (command.Type)
Channel.QueueBind( {
queue: Queue.QueueName, case QueueBindType.Bind:
exchange: Exchange.ExchangeName, Channel.QueueBind(
routingKey: command.RoutingKey queue: Queue.QueueName,
); exchange: Exchange.ExchangeName,
break; routingKey: command.RoutingKey
case QueueBindType.Unbind: );
Channel.QueueUnbind( break;
queue: Queue.QueueName, case QueueBindType.Unbind:
exchange: Exchange.ExchangeName, Channel.QueueUnbind(
routingKey: command.RoutingKey queue: Queue.QueueName,
); exchange: Exchange.ExchangeName,
break; routingKey: command.RoutingKey
default: );
throw new AbpException($"Unknown {nameof(QueueBindType)}: {command.Type}"); break;
default:
throw new AbpException($"Unknown {nameof(QueueBindType)}: {command.Type}");
}
QueueBindCommands.TryDequeue(out command);
} }
QueueBindCommands.TryDequeue(out command);
} }
} }
} }

Loading…
Cancel
Save