ServiceGroupFactory.AddServiceType(String, Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.