mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
873 B
32 lines
873 B
using Microsoft.Extensions.DependencyInjection;
|
|
using Serilog;
|
|
using Volo.Abp;
|
|
using Volo.Abp.Threading;
|
|
|
|
namespace DistDemoApp;
|
|
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
using var application = AbpApplicationFactory.Create<DistDemoAppAzureEmulatorModule>(options =>
|
|
{
|
|
options.UseAutofac();
|
|
options.Services.AddSerilog((serviceProvider, configuration) =>
|
|
{
|
|
});
|
|
options.Services.AddLogging(c => c.AddSerilog());
|
|
});
|
|
|
|
Log.Information("Starting DistDemoApp.AzureEmulator.");
|
|
|
|
application.Initialize();
|
|
|
|
AsyncHelper.RunSync(() => application
|
|
.ServiceProvider
|
|
.GetRequiredService<IDistEventScenarioRunner>()
|
|
.RunAsync(DistEventScenarioProfile.AzureEmulator()));
|
|
|
|
application.Shutdown();
|
|
}
|
|
}
|
|
|