Skip to content

InProcessSiloHandle Methods

Represents a handle to a silo that is deployed in the same process and AppDomain.

CreateAsync(string, IConfiguration, Action<IHostBuilder>)

static
View source
public static Task<InProcessSiloHandle> CreateAsync(string siloName, IConfiguration configuration, Action<IHostBuilder> postConfigureHostBuilder = null)
Create a silo handle.

Parameters

siloNamestring
Name of the silo.
configurationIConfiguration
The configuration.
postConfigureHostBuilderAction<IHostBuilder>
An optional delegate which is invoked just prior to building the host builder.

Returns

The silo handle.

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.