Beispiel #1
0
 public DefaultServiceHost(SoaServiceContainerBuilder builder, string[] args)
 {
     original_args = args;
     _builder      = builder;
     waitExit      = new AutoResetEvent(false);
     builder.Services.AddSingleton <ISoaServiceHost, DefaultServiceHost>((s) => this);
     config      = builder.Services.BuildServiceProvider().GetService <IConfiguration>();
     console_log = LoadConfigLogConfig();
     ConfigServices();
 }
Beispiel #2
0
        public static SoaServiceContainerBuilder CreateBuilder(string[] args, IServiceCollection services = null)
        {
            var builder = new SoaServiceContainerBuilder(args, services);

            return(builder);
        }