편집

다음을 통해 공유


SiloHost Class

Definition

Caution

This type is obsolete and may be removed in a future release. Use SiloHostBuilder to create an instance of ISiloHost instead.

Allows programmatically hosting an Orleans silo in the current app domain.

public class SiloHost : MarshalByRefObject, IDisposable
[System.Obsolete("This type is obsolete and may be removed in a future release. Use SiloHostBuilder to create an instance of ISiloHost instead.")]
public class SiloHost : MarshalByRefObject, IDisposable
type SiloHost = class
    inherit MarshalByRefObject
    interface IDisposable
[<System.Obsolete("This type is obsolete and may be removed in a future release. Use SiloHostBuilder to create an instance of ISiloHost instead.")>]
type SiloHost = class
    inherit MarshalByRefObject
    interface IDisposable
Public Class SiloHost
Inherits MarshalByRefObject
Implements IDisposable
Inheritance
Attributes
Implements

Constructors

SiloHost(String, ClusterConfiguration)

Constructor

SiloHost(String, FileInfo)

Constructor

SiloHost(String)

Constructor

Properties

Config

Configuration data for the Orleans system.

ConfigFileName

Configuration file used for this silo. Changing this after the silo has started (when ConfigLoaded == true) will have no effect.

ConfigLoaded

Whether the silo config has been loaded and initializing it's runtime config.

ConfigureSiloHostDelegate

delegate to add some configuration to the client

Debug

Silo Debug flag. If set to true then additional diagnostic info will be written during silo startup.

DeploymentId

Cluster Id (if any) for the cluster this silo is running in.

IsStarted

Whether this silo started successfully and is currently running.

Name

Name of this silo.

NodeConfig

Configuration data for this silo.

TraceFilePath

Directory to use for the trace log file written by this silo.

Type

Type of this silo - either Primary or Secondary.

Verbose

Verbose flag. If set to true then additional status and diagnostics info will be written during silo startup.

Methods

Dispose()

Called when this silo is being Disposed by .NET runtime.

Dispose(Boolean)

Perform the Dispose / cleanup operation.

InitializeOrleansSilo()

Initialize this silo.

InitializeSilo()

Initialize this silo.

LoadConfig()

Search for and load the config file for this silo.

LoadOrleansConfig()

Search for and load the config file for this silo.

ReportStartupError(Exception)

Report an error during silo startup.

SetDeploymentId(String, String)

Set the ClusterId for this silo, as well as the connection string to use the silo system data, such as the cluster membership table..

SetExpectedClusterSize(Int32)

Set expected deployment size.

SetPrimaryNodeEndpoint(IPEndPoint)

Set the endpoint addresses for the Primary silo (if any). This silo may be Primary, in which case this address should match this silo's inter-silo connection socket address.

SetProxyEndpoint(IPEndPoint)

Set the gateway proxy endpoint address for this silo.

SetReminderServiceType(GlobalConfiguration+ReminderServiceProviderType)

Set the reminder service type to be used by this silo.

SetSeedNodeEndpoint(IPEndPoint)

Set the seed node endpoint address to be used by silo.

SetSeedNodeEndpoints(IPEndPoint[])

Set the set of seed node endpoint addresses to be used by silo.

SetSiloEndpoint(IPEndPoint, Int32)

Set the main endpoint address for this silo, plus the silo generation value to be used to distinguish this silo instance from any previous silo instances previously running on this endpoint.

SetSiloLivenessType(GlobalConfiguration+LivenessProviderType)

Set the membership liveness type to be used by this silo.

SetSiloType(Silo+SiloType)

Set the type of this silo. Default is Secondary.

ShutdownOrleansSilo()

Gracefully shutdown this silo.

ShutdownSilo()

Gracefully shutdown this silo.

ShutdownSiloAsync(CancellationToken)

/// Returns a task that will resolve when the silo has finished shutting down, or the cancellation token is cancelled.

ShutdownSiloAsync(Int32, CancellationToken)

Returns a task that will resolve when the silo has finished shutting down, or the cancellation token is cancelled.

StartOrleansSilo(Boolean)

Start this silo.

StartSilo(Boolean)

Start this silo.

StartSiloAsync(Boolean)

Start this silo.

StopOrleansSilo()

Stop this silo.

StopSilo()

Stop this silo.

UnInitializeOrleansSilo()

Uninitialize this silo.

UnInitializeSilo()

Uninitialize this silo.

WaitForOrleansSiloShutdown()

Wait for this silo to shutdown.

WaitForOrleansSiloShutdown(CancellationToken)

Wait for this silo to shutdown or to be stopped with provided cancellation token.

WaitForSiloShutdown()

Wait for this silo to shutdown.

WaitForSiloShutdown(CancellationToken)

Wait for this silo to shutdown or to be stopped with provided cancellation token.

WaitForSiloShutdownAsync(Int32, CancellationToken)

Waits for the SiloTerminatedEvent to fire or cancellation token to be cancelled.

Applies to