Table of Contents

Interface IProcessService

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).

[SliceTypeId("::Ice::Process")]
[DefaultServicePath("/Ice.Process")]
public interface IProcessService

Remarks

The Slice compiler generated this server-side interface from Slice interface Ice::Process. Your service implementation must implement this interface.

Methods

ShutdownAsync(IFeatureCollection, CancellationToken)

Initiates a graceful shutdown of the server application.

ValueTask ShutdownAsync(IFeatureCollection features, CancellationToken cancellationToken)

Parameters

features IFeatureCollection

The dispatch features.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

ValueTask

A value task that completes when this implementation completes.

WriteMessageAsync(string, int, IFeatureCollection, CancellationToken)

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

ValueTask WriteMessageAsync(string message, int fd, IFeatureCollection features, CancellationToken cancellationToken)

Parameters

message string

The message to write.

fd int

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

features IFeatureCollection

The dispatch features.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

ValueTask

A value task that completes when this implementation completes.