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.
36 lines
1.0 KiB
36 lines
1.0 KiB
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<DistDemoAppMongoDbKafkaModule>(options =>
|
|
{
|
|
options.UseAutofac();
|
|
options.Services.AddSerilog((_, _) =>
|
|
{
|
|
});
|
|
options.Services.AddLogging(c => c.AddSerilog());
|
|
}))
|
|
{
|
|
Log.Information("Starting DistDemoApp.MongoDbKafka.");
|
|
|
|
application.Initialize();
|
|
|
|
AsyncHelper.RunSync(
|
|
() => application
|
|
.ServiceProvider
|
|
.GetRequiredService<DemoService>().CreateTodoItemAsync()
|
|
);
|
|
|
|
application.Shutdown();
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
|