FabricRuntime Class
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.
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, |
CreateAsync(TimeSpan, CancellationToken) |
Creates the FabricRuntime object asynchronously with the specified |
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 |
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 |
RegisterServiceType(String, Type) |
Associates the specified |
RegisterServiceTypeAsync(String, Type, TimeSpan, CancellationToken) |
Asynchronously associates the specified serviceTypeName with the actual managed Type that implements it, with the specified |
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
|
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 |