Edit

Share via


OrleansGeneratedCodeHelper.GetService<TService> Method

Definition

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.

Applies to