Hi,
Yes you can.
But I recommend you create a shared project
The shared project can reference to the application project.
/Pages/Account/
not wwwroot
Could you use the CLI to create a new project to reproduce the problem and share it with me? I will check it. My email is shiwei.liang@volsoft.com
thanks
Hi,
You can create a shared project and place components to reuse the Blazor components.
For example:
Component.Shared project:
DialogAComponent
<p>This is a reuse Blazor component<p>
Service A project
Service A Index page
<DialogAComponent/>
Service B project
Service B Index page
<DialogAComponent/>
Hi,
You need to override the PublishAsync
method of AzureDistributedEventBus
For example:
public interface IEventDataHasScheduledEnqueueTime
{
DateTimeOffset ScheduledEnqueueTime { get; set; }
}
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IDistributedEventBus), typeof(AzureDistributedEventBus))]
public class MyAzureDistributedEventBus : AzureDistributedEventBus
{
public MyAzureDistributedEventBus(IServiceScopeFactory serviceScopeFactory, ICurrentTenant currentTenant, IUnitOfWorkManager unitOfWorkManager, IOptions<AbpDistributedEventBusOptions> abpDistributedEventBusOptions, IGuidGenerator guidGenerator, IClock clock, IOptions<AbpAzureEventBusOptions> abpAzureEventBusOptions, IAzureServiceBusSerializer serializer, IAzureServiceBusMessageConsumerFactory messageConsumerFactory, IPublisherPool publisherPool, IEventHandlerInvoker eventHandlerInvoker, ILocalEventBus localEventBus, ICorrelationIdProvider correlationIdProvider) : base(serviceScopeFactory, currentTenant, unitOfWorkManager, abpDistributedEventBusOptions, guidGenerator, clock, abpAzureEventBusOptions, serializer, messageConsumerFactory, publisherPool, eventHandlerInvoker, localEventBus, correlationIdProvider)
{
}
protected async override Task PublishAsync(string eventName, object eventData)
{
var body = Serializer.Serialize(eventData);
var message = new ServiceBusMessage(body)
{
Subject = eventName
};
if (eventData is IEventDataHasScheduledEnqueueTime eventDataHasScheduledEnqueueTime)
{
message.ScheduledEnqueueTime = eventDataHasScheduledEnqueueTime.ScheduledEnqueueTime;
}
if (message.MessageId.IsNullOrWhiteSpace())
{
message.MessageId = GuidGenerator.Create().ToString("N");
}
message.CorrelationId = CorrelationIdProvider.Get();
var publisher = await PublisherPool.GetAsync(
Options.TopicName,
Options.ConnectionName);
await publisher.SendMessageAsync(message);
}
}
Hi,
You can try to install the Yarnv1.20+ (not v2)
.
then run yarn install
command to restore the packages
Hi,
Maybe you need this https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balance
You can add to the Host
project