Table of Contents

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

stream Stream

The Stream that will be used to communicate with the service.

hostProvidedServices IServiceProvider

Provides other services to the service.

serviceActivationOptions ServiceActivationOptions

The activation options used to start the service.

serviceBroker IServiceBroker

The IServiceBroker that can be used to request additional services.

authorizationServiceClient AuthorizationServiceClient

The AuthorizationServiceClient retrieved from the IServiceBroker.

Returns

Task<object>

An instance of a ServiceHub service.