Udostępnij za pośrednictwem


ServiceGroupFactory.AddServiceType(String, Type) Method

Definition

Registers a particular stateful or stateless service type with the service group factory so that it can be created as a member of the service group.

public void AddServiceType (string serviceTypeName, Type serviceTypeImplementation);
member this.AddServiceType : string * Type -> unit
Public Sub AddServiceType (serviceTypeName As String, serviceTypeImplementation As Type)

Parameters

serviceTypeName
String

The service type name as a string. It should match the service type that is specified in the manifest or the ServiceGroupMemberDescription of the ServiceGroupDescription that is provided during the CreateServiceGroupAsync(ServiceGroupDescription) call.

serviceTypeImplementation
Type

The fully qualified C# type of the service that implements the Service Fabric service.

Applies to