示例#1
0
 /// <summary>
 /// Optional override to create listeners (like tcp, http) for this service instance.
 /// </summary>
 /// <returns>The collection of listeners.</returns>
 protected override IEnumerable <ServiceInstanceListener> CreateServiceInstanceListeners()
 {
     return(new ServiceInstanceListener[]
     {
         new ServiceInstanceListener(serviceContext => new OwinCommunicationListener(appBuilder => Startup.ConfigureApp(appBuilder, Container), serviceContext, ServiceEventSource.Current, "ServiceEndpoint"))
     });
 }