Commit d86aa4ca authored by Marc Gravell's avatar Marc Gravell

Conditionalize a bunch of things

parent 4c990714
......@@ -258,35 +258,37 @@ internal string GetConnectionName(EndPoint endPoint, ConnectionType connectionTy
internal event Action<EndPoint, ConnectionType> Connecting;
internal event Action<EndPoint, ConnectionType> Resurrecting;
[Conditional("VERBOSE")]
internal void OnMessageFaulted(Message msg, Exception fault, [CallerMemberName] string origin = default, [CallerFilePath] string path = default, [CallerLineNumber] int lineNumber = default)
{
MessageFaulted?.Invoke(msg?.CommandAndKey, fault, $"{origin} ({path}#{lineNumber})");
}
[Conditional("VERBOSE")]
internal void OnInfoMessage(string message)
{
InfoMessage?.Invoke(message);
}
[Conditional("VERBOSE")]
internal void OnClosing(bool complete)
{
Closing?.Invoke(complete);
}
[Conditional("VERBOSE")]
internal void OnConnecting(EndPoint endpoint, ConnectionType connectionType)
{
Connecting?.Invoke(endpoint, connectionType);
}
[Conditional("VERBOSE")]
internal void OnResurrecting(EndPoint endpoint, ConnectionType connectionType)
{
Resurrecting.Invoke(endpoint, connectionType);
}
[Conditional("VERBOSE")]
internal void OnPreTransactionExec(Message message)
{
PreTransactionExec?.Invoke(message.CommandAndKey);
}
[Conditional("VERBOSE")]
internal void OnTransactionLog(string message)
{
TransactionLog?.Invoke(message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment