IProviderRuntime Interface

Definition

Interface to allow callbacks from providers into their assigned provider-manager. This allows access to runtime functionality, such as logging.

public interface IProviderRuntime
type IProviderRuntime = interface
Public Interface IProviderRuntime
Derived

Remarks

Passed to the provider during IProvider.Init call to that provider instance.

Properties

GrainFactory

Gets factory for getting references to grains.

ServiceId

Provides the ServiceId this cluster is running as. ServiceId's are intended to be long lived Id values for a particular service which will remain constant even if the service is started / redeployed multiple times during its operations life.

ServiceProvider

Gets service provider for dependency injection.

SiloIdentity

A unique identifier for the current silo. There is no semantic content to this string, but it may be useful for logging.

Methods

BindExtension<TExtension,TExtensionInterface>(Func<TExtension>)

Binds an extension to an addressable object, if not already done.

GetInvokeInterceptor()
Obsolete.

Gets the invocation interceptor which will be invoked on each request.

GetLogger(String)

Provides a logger to be used by the provider.

SetInvokeInterceptor(InvokeInterceptor)
Obsolete.

Sets the invocation interceptor which will be invoked on each request.

Extension Methods

GetLogger(IProviderRuntime, String)

Provides a logger to be used by the provider.

Applies to

See also