Interface IProcess
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
featuresIFeatureCollectionThe invocation features.
cancellationTokenCancellationTokenA 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
messagestringThe message to write.
fdint'1' for stdout, '2' for stderr.
featuresIFeatureCollectionThe invocation features.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that completes when the response is received.