OrleansGeneratedCodeHelper.GetService<TService> 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.
Unwraps the provided service if it was wrapped.
public static TService GetService<TService> (object caller, Orleans.Serialization.Serializers.ICodecProvider codecProvider);
static member GetService : obj * Orleans.Serialization.Serializers.ICodecProvider -> 'Service
Public Function GetService(Of TService) (caller As Object, codecProvider As ICodecProvider) As TService
Type Parameters
- TService
The service type.
Parameters
- caller
- Object
The caller.
- codecProvider
- ICodecProvider
The codec provider.
Returns
TService
The unwrapped service.