Table of Contents

Interface AsyncRemoteLogger

Namespace
Ice
Assembly
Ice.dll

Receives the log messages sent by the Logger admin facet of a communicator.

[SliceTypeId("::Ice::RemoteLogger")]
public interface AsyncRemoteLogger : Object
Inherited Members

Remarks

This Async interface maps each Slice operation to an asynchronous method that returns a Task. Your servant class implements this interface by deriving fromAsyncRemoteLoggerDisp_ or from the Disp_ class for a derived interface. The Slice compiler generated this skeleton interface from Slice interface ::Ice::RemoteLogger.

Methods

initAsync(string, LogMessage[], Current)

Initializes this remote logger with the prefix and the most recent log messages of the logger of the communicator that hosts the Logger admin facet. This facet calls this operation once, after attachRemoteLoggerAsync(RemoteLoggerPrx?, LogMessageType[], string[], int, Dictionary<string, string>?, IProgress<bool>?, CancellationToken) attaches this remote logger.

Task initAsync(string prefix, LogMessage[] logMessages, Current current)

Parameters

prefix string

The prefix of that logger.

logMessages LogMessage[]

The most recent log messages cached by the Logger admin facet that match the filters given to attachRemoteLoggerAsync(RemoteLoggerPrx?, LogMessageType[], string[], int, Dictionary<string, string>?, IProgress<bool>?, CancellationToken), oldest first, up to its messageMax. This sequence is empty when messageMax is 0.

current Current

The Current object for the dispatch.

Returns

Task

A task that completes when the dispatch completes.

logAsync(LogMessage, Current)

Task logAsync(LogMessage message, Current current)

Parameters

message LogMessage

The log message.

current Current

The Current object for the dispatch.

Returns

Task

A task that completes when the dispatch completes.

Remarks

See Also