Remove Program.AppName
This commit is contained in:
parent
8da0a81514
commit
da024f9812
@ -1,4 +1,4 @@
|
|||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBusServiceBus;
|
namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBusServiceBus;
|
||||||
|
|
||||||
@ -12,7 +12,6 @@ public class EventBusServiceBus : IEventBus, IAsyncDisposable
|
|||||||
private readonly string _subscriptionName;
|
private readonly string _subscriptionName;
|
||||||
private readonly ServiceBusSender _sender;
|
private readonly ServiceBusSender _sender;
|
||||||
private readonly ServiceBusProcessor _processor;
|
private readonly ServiceBusProcessor _processor;
|
||||||
private readonly string AUTOFAC_SCOPE_NAME = "eshop_event_bus";
|
|
||||||
private const string INTEGRATION_EVENT_SUFFIX = "IntegrationEvent";
|
private const string INTEGRATION_EVENT_SUFFIX = "IntegrationEvent";
|
||||||
|
|
||||||
public EventBusServiceBus(IServiceBusPersisterConnection serviceBusPersisterConnection,
|
public EventBusServiceBus(IServiceBusPersisterConnection serviceBusPersisterConnection,
|
||||||
@ -198,4 +197,4 @@ public class EventBusServiceBus : IEventBus, IAsyncDisposable
|
|||||||
_subsManager.Clear();
|
_subsManager.Clear();
|
||||||
await _processor.CloseAsync();
|
await _processor.CloseAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,9 +34,3 @@ app.MapHealthChecks("/liveness", new HealthCheckOptions
|
|||||||
});
|
});
|
||||||
|
|
||||||
await app.RunAsync();
|
await app.RunAsync();
|
||||||
|
|
||||||
public partial class Program
|
|
||||||
{
|
|
||||||
public static string Namespace = typeof(Program).Assembly.GetName().Name;
|
|
||||||
public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1);
|
|
||||||
}
|
|
||||||
|
@ -196,11 +196,6 @@ void RegisterEventBus(IServiceCollection services, IConfiguration configuration)
|
|||||||
|
|
||||||
services.AddSingleton<IEventBusSubscriptionsManager, InMemoryEventBusSubscriptionsManager>();
|
services.AddSingleton<IEventBusSubscriptionsManager, InMemoryEventBusSubscriptionsManager>();
|
||||||
}
|
}
|
||||||
public partial class Program
|
|
||||||
{
|
|
||||||
public static string Namespace = typeof(Program).Assembly.GetName().Name;
|
|
||||||
public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1);
|
|
||||||
}
|
|
||||||
public static class CustomExtensionMethods
|
public static class CustomExtensionMethods
|
||||||
{
|
{
|
||||||
public static IServiceCollection AddCustomHealthCheck(this IServiceCollection services, IConfiguration configuration)
|
public static IServiceCollection AddCustomHealthCheck(this IServiceCollection services, IConfiguration configuration)
|
||||||
|
@ -129,11 +129,6 @@ void ConfigureEventBus(IApplicationBuilder app)
|
|||||||
eventBus.Subscribe<OrderStatusChangedToStockConfirmedIntegrationEvent, OrderStatusChangedToStockConfirmedIntegrationEventHandler>();
|
eventBus.Subscribe<OrderStatusChangedToStockConfirmedIntegrationEvent, OrderStatusChangedToStockConfirmedIntegrationEventHandler>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public partial class Program
|
|
||||||
{
|
|
||||||
public static string Namespace = typeof(Program).Assembly.GetName().Name;
|
|
||||||
public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1);
|
|
||||||
}
|
|
||||||
public static class CustomExtensionMethods
|
public static class CustomExtensionMethods
|
||||||
{
|
{
|
||||||
public static IServiceCollection AddCustomHealthCheck(this IServiceCollection services, IConfiguration configuration)
|
public static IServiceCollection AddCustomHealthCheck(this IServiceCollection services, IConfiguration configuration)
|
||||||
|
@ -149,8 +149,3 @@ static void AddCustomAuthentication(WebApplicationBuilder builder)
|
|||||||
options.Scope.Add("webhooks");
|
options.Scope.Add("webhooks");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public partial class Program
|
|
||||||
{
|
|
||||||
public static readonly string AppName = typeof(Program).Assembly.GetName().Name;
|
|
||||||
}
|
|
||||||
|
@ -52,9 +52,3 @@ app.MapHealthChecks("/liveness", new HealthCheckOptions
|
|||||||
});
|
});
|
||||||
|
|
||||||
await app.RunAsync();
|
await app.RunAsync();
|
||||||
|
|
||||||
public partial class Program
|
|
||||||
{
|
|
||||||
private static readonly string _namespace = typeof(Program).Assembly.GetName().Name;
|
|
||||||
public static readonly string AppName = _namespace;
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user