Interface IProcess
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).
public interface IProcess
Remarks
Use the methods of this interface to invoke operations on a remote Ice service that implements Process.
The Ice compiler generated this client-side interface from Ice interface ::Ice::Process.
Methods
ShutdownAsync(IFeatureCollection?, CancellationToken)
Initiates a graceful shutdown of the server application.
Task ShutdownAsync(IFeatureCollection? features = null, CancellationToken cancellationToken = default)
Parameters
featuresIFeatureCollectionThe features of this invocation.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that completes when the response is received.
Exceptions
- DispatchException
Thrown when the dispatch of the operation failed. This exception is provided through the returned task; it's never thrown synchronously.
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.
fdint1 for stdout, 2 for stderr.
featuresIFeatureCollectionThe features of this invocation.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that completes when the response is received.
Exceptions
- DispatchException
Thrown when the dispatch of the operation failed. This exception is provided through the returned task; it's never thrown synchronously.