FabricRuntime Class

Definition

Allows user created hosts to obtain their CodePackageActivationContext, well as to register the necessary service factories [ IStatelessServiceFactory, IStatefulServiceFactory, or ServiceGroupFactory] or service types directly.

public sealed class FabricRuntime : IDisposable
type FabricRuntime = class
    interface IDisposable
Public NotInheritable Class FabricRuntime
Implements IDisposable
Inheritance
FabricRuntime
Implements

Methods

Create()

Creates the FabricRuntime object.

Create(Action)

Creates the FabricRuntime object with a specified callback function which will be executed if the underlying runtime terminates or exits for any reason.

CreateAsync(Action, TimeSpan, CancellationToken)

Creates the FabricRuntime object asynchronously with the specified callback function which will be executed if the underlying runtime terminates or exits for any reason, timeout, and cancellationToken.

CreateAsync(TimeSpan, CancellationToken)

Creates the FabricRuntime object asynchronously with the specified timeout and cancellationToken.

Dispose()

Disposes of the FabricRuntime.

GetActivationContext()

Retrieves the current FabricRuntime’s CodePackageActivationContext.

GetActivationContextAsync(TimeSpan, CancellationToken)

Retrieves the current FabricRuntime’s CodePackageActivationContext asynchronously with the specified timeout and cancellationToken.

GetCodePackageActivator()

This is for internal use only.

GetCodePackageActivatorAsync(TimeSpan, CancellationToken)

This is for internal use only.

GetNodeContext()

Gets the Node Context object that contains information about Fabric Node.

GetNodeContextAsync(TimeSpan, CancellationToken)

Gets Node Context from Fabric Node asynchronously with timeout and cancellation token.

RegisterServiceGroupFactory(String, ServiceGroupFactory)

Registers the specified ServiceGroupFactory for the specified type.

RegisterServiceGroupFactoryAsync(String, ServiceGroupFactory, TimeSpan, CancellationToken)

Asynchronously registers the specified ServiceGroupFactory for the specified service group type with the specified timeout and cancellationToken.

RegisterServiceType(String, Type)

Associates the specified serviceTypeName with the actual managed Type that implements it.

RegisterServiceTypeAsync(String, Type, TimeSpan, CancellationToken)

Asynchronously associates the specified serviceTypeName with the actual managed Type that implements it, with the specified timeout and cancellationToken

RegisterStatefulServiceFactory(String, IStatefulServiceFactory)

Registers the specified IStatefulServiceFactory for the specified service type.

RegisterStatefulServiceFactoryAsync(String, IStatefulServiceFactory, TimeSpan, CancellationToken)

Registers the specified IStatefulServiceFactory for the specified service type with the specified timeout and cancellationToken.

RegisterStatelessServiceFactory(String, IStatelessServiceFactory)

Registers the specified IStatelessServiceFactory for the specified service type.

RegisterStatelessServiceFactoryAsync(String, IStatelessServiceFactory, TimeSpan, CancellationToken)

Asynchronously registers the specified IStatelessServiceFactory for the specified service type, with the specified timeout and cancellationToken

Applies to