Table of Contents

Interface IProcessService

Namespace
IceRpc.Ice
Assembly
IceRpc.Locator.dll

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

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

Remarks

Apply ServiceAttribute to the partial class that implements this interface. The Ice compiler generated this server-side interface from Ice interface ::Ice::Process.

Methods

ShutdownAsync(IFeatureCollection, CancellationToken)

Initiates a graceful shutdown of the server application.

[IceOperation("shutdown")]
ValueTask ShutdownAsync(IFeatureCollection features, CancellationToken cancellationToken)

Parameters

features IFeatureCollection

The features of this dispatch.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

ValueTask

A value task that completes when the dispatch completes.

WriteMessageAsync(string, int, IFeatureCollection, CancellationToken)

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

[IceOperation("writeMessage")]
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 features of this dispatch.

cancellationToken CancellationToken

A cancellation token that receives the cancellation requests.

Returns

ValueTask

A value task that completes when the dispatch completes.