Exemple #1
0
 protected void WriteLog(string message, ServerLogScope scope, Exception exception)
 {
     this.Log?.Invoke(this, new ServerLogEventArgs()
     {
         Message   = message,
         Scope     = scope,
         Exception = exception,
     });
 }
Exemple #2
0
 protected void WriteLog(string message, ServerLogScope scope = ServerLogScope.Information)
 {
     this.WriteLog(message, scope, null);
 }