FabricRuntime.RegisterServiceTypeAsync 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.
Asynchronously associates the specified serviceTypeName with the actual managed Type that implements it, with the specified timeout
and cancellationToken
public System.Threading.Tasks.Task RegisterServiceTypeAsync (string serviceTypeName, Type serviceTypeImplementation, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.RegisterServiceTypeAsync : string * Type * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RegisterServiceTypeAsync (serviceTypeName As String, serviceTypeImplementation As Type, timeout As TimeSpan, cancellationToken As CancellationToken) As Task
Parameters
- serviceTypeName
- String
The type name of the service type (as a string). This should match the type of the service group type as specified in the manifests and/or the CreateService command.
- serviceTypeImplementation
- Type
The qualified service Type that implements the specified serviceTypeName
.
- timeout
- TimeSpan
The maximum amount of time Service Fabric will allow this operation to continue before returning a TimeoutException.
- cancellationToken
- CancellationToken
The CancellationToken that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is canceled.
Returns
The task representing the asynchronous operation.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for