Table of Contents

Interface IProcess

Namespace
IceRpc.Slice.Ice
Assembly
IceRpc.Locator.dll

A server application managed by a locator implementation such as IceGrid hosts a Process service and registers a proxy to this service with the locator registry. See SetServerProcessProxyAsync(string, ProcessProxy, IFeatureCollection?, CancellationToken).

public interface IProcess

Remarks

The Slice compiler generated this client-side interface from Slice interface Ice::Process. It's implemented by ProcessProxy.

Methods

ShutdownAsync(IFeatureCollection?, CancellationToken)

Initiates a graceful shutdown of the server application.

Task ShutdownAsync(IFeatureCollection? features = null, CancellationToken cancellationToken = default)

Parameters

features IFeatureCollection

The invocation features.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

Task

A task that completes when the response is received.

WriteMessageAsync(string, int, IFeatureCollection?, CancellationToken)

Writes a message on the server application's stdout or stderr.

Task WriteMessageAsync(string message, int fd, IFeatureCollection? features = null, CancellationToken cancellationToken = default)

Parameters

message string

The message to write.

fd int

'1' for stdout, '2' for stderr.

features IFeatureCollection

The invocation features.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

Task

A task that completes when the response is received.