Example #1
0
 void HandleSocketEvent(object sender, ServerEvent serverEvent)
 {
     _eventLog.Add(serverEvent);
     SocketEventOccurred?.Invoke(sender, serverEvent);
 }
Example #2
0
 void HandleFileTransferProgress(object sender, ServerEvent serverEvent)
 {
     _eventLog.Add(serverEvent);
     FileTransferProgress?.Invoke(sender, serverEvent);
 }
Example #3
0
        protected virtual void OnFileTransferProgress(ServerEvent serverEvent)
        {
            var handler = FileTransferProgress;

            handler?.Invoke(this, serverEvent);
        }
Example #4
0
        protected virtual void OnSocketEventOccurred(ServerEvent serverEvent)
        {
            var handler = SocketEventOccurred;

            handler?.Invoke(this, serverEvent);
        }
 static bool LogLevelIsDebugOnly(ServerEvent serverEvent)
 {
     return(serverEvent.LogLevelIsDebugOnly);
 }
 static bool LogLevelIsTraceOnly(ServerEvent serverEvent)
 {
     return(serverEvent.LogLevelIsTraceOnly);
 }
 static bool DoNotDisplayInLog(ServerEvent serverEvent)
 {
     return(serverEvent.DoNotDisplayInLog);
 }