Interface IServiceHubServiceFactory
- Namespace
- Microsoft.ServiceHub.Framework
- Assembly
- Microsoft.ServiceHub.Framework.dll
Describes a class that can create a ServiceHub service.
public interface IServiceHubServiceFactory
Methods
CreateAsync(Stream, IServiceProvider, ServiceActivationOptions, IServiceBroker, AuthorizationServiceClient)
Creates an instance of a ServiceHub service asynchronously.
Task<object> CreateAsync(Stream stream, IServiceProvider hostProvidedServices, ServiceActivationOptions serviceActivationOptions, IServiceBroker serviceBroker, AuthorizationServiceClient authorizationServiceClient)
Parameters
streamStreamThe Stream that will be used to communicate with the service.
hostProvidedServicesIServiceProviderProvides other services to the service.
serviceActivationOptionsServiceActivationOptionsThe activation options used to start the service.
serviceBrokerIServiceBrokerThe IServiceBroker that can be used to request additional services.
authorizationServiceClientAuthorizationServiceClientThe AuthorizationServiceClient retrieved from the IServiceBroker.