Skip to content

ILogConsistencyProtocolServices Methods

Functionality for use by log view adaptors that use custom consistency or replication protocols. Abstracts communication between replicas of the log-consistent grain in different clusters.

CaughtException(string, Exception)

abstract
public abstract void CaughtException(string where, Exception e)
Log an exception that was caught in the log-consistency protocol.

Parameters

wherestring
eException

CaughtUserCodeException(string, string, Exception)

abstract
public abstract void CaughtUserCodeException(string callback, string where, Exception e)
Log an exception that occurred in user code, for some callback

Parameters

callbackstring
The name of the callback
wherestring
The context from which the callback was called
eException
The caught exception

DeepCopy(T)

abstract
public abstract T DeepCopy<T>(T value)
Copies the provided argument.

Parameters

valueT

Log(LogLevel, string, object[])

abstract
public abstract void Log(LogLevel level, string format, params object[] args)
Output the specified message at the specified log level.

Parameters

levelLogLevel
formatstring
argsobject[]

ProtocolError(string, bool)

abstract
public abstract void ProtocolError(string msg, bool throwexception)
Log an error that occurred in a log-consistency protocol.

Parameters

msgstring
throwexceptionbool