Skip to content

StandaloneSiloHandle Methods

A silo handle and factory which spawns a separate process for each silo.

Create(string, IConfiguration)

static
View source
public static Task<SiloHandle> Create(string siloName, IConfiguration configuration)
Spawns a new process to host a silo, using the executable provided in the configuration's "ExecutablePath" property as the entry point.

Parameters

siloNamestring
configurationIConfiguration

CreateDelegate(string)

static
View source
public static Func<string, IConfiguration, Task<SiloHandle>> CreateDelegate(string executablePath)
Creates a delegate which spawns a silo in a new process, using the provided executable as the entry point for that silo.

Parameters

executablePathstring
The entry point for spawned silos.

CreateForAssembly(Assembly)

static
View source
public static Func<string, IConfiguration, Task<SiloHandle>> CreateForAssembly(Assembly assembly)
Creates a delegate which spawns a silo in a new process, with the provided assembly (or its executable counterpart, if it is a library) being the entry point for that silo.

Parameters

assemblyAssembly
The entry point for spawned silos. If the provided assembly is a library (dll), then its executable sibling assembly will be invoked instead.

DisposeAsync

override
View source
public override ValueTask DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

Returns

A task that represents the asynchronous dispose operation.

StopSiloAsync(CancellationToken)

override
View source
public override Task StopSiloAsync(CancellationToken ct)
Stop the remote silo. This method cannot be use with AppDomain

Parameters

ctCancellationToken
Specifies the cancellation token to use for the shutdown sequence

StopSiloAsync(bool)

override
View source
public override Task StopSiloAsync(bool stopGracefully)
Stop the remote silo

Parameters

stopGracefullybool
Specifies whether the silo should be stopped gracefully or abruptly.