private void Configure(AzureServiceBusOwinServiceConfiguration config, Action <IAppBuilder> startup) { if (startup == null) { throw new ArgumentNullException("startup"); } var options = new StartOptions(); if (string.IsNullOrWhiteSpace(options.AppStartup)) { // Populate AppStartup for use in host.AppName options.AppStartup = startup.Method.ReflectedType.FullName; } var serverFactory = new AzureServiceBusOwinServerFactory(config); var services = ServicesFactory.Create(); var engine = services.GetService <IHostingEngine>(); var context = new StartContext(options) { ServerFactory = new ServerFactoryAdapter(serverFactory), Startup = startup }; _started = engine.Start(context); }
public static AzureServiceBusOwinServer Create(AzureServiceBusOwinServiceConfiguration config, Action <IAppBuilder> startup) { var server = new AzureServiceBusOwinServer(); server.Configure(config, startup); return(server); }
private void Configure(AzureServiceBusOwinServiceConfiguration config, Action<IAppBuilder> startup) { if (startup == null) { throw new ArgumentNullException("startup"); } var options = new StartOptions(); if (string.IsNullOrWhiteSpace(options.AppStartup)) { // Populate AppStartup for use in host.AppName options.AppStartup = startup.Method.ReflectedType.FullName; } var serverFactory = new AzureServiceBusOwinServerFactory(config); var services = ServicesFactory.Create(); var engine = services.GetService<IHostingEngine>(); var context = new StartContext(options) { ServerFactory = new ServerFactoryAdapter(serverFactory), Startup = startup }; _started = engine.Start(context); }
public static AzureServiceBusOwinServer Create(AzureServiceBusOwinServiceConfiguration config, Action<IAppBuilder> startup) { var server = new AzureServiceBusOwinServer(); server.Configure(config, startup); return server; }
public AzureServiceBusOwinServerFactory(AzureServiceBusOwinServiceConfiguration config) { _config = config; }
public AzureServiceBusOwinServerFactory(AzureServiceBusOwinServiceConfiguration config) { _config = config; }