NLog.SocketAppenderBase.onConnected C# (CSharp) Méthode

onConnected() private méthode

private onConnected ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void
        void onConnected(object sender, EventArgs e)
        {
            if (_history.Count > 0) {
                Send(LogLevel.Debug, "SocketAppenderBase: Flush history - - - - - - - - - - - - - - - - - - - -");
                foreach (HistoryItem item in _history) {
                    Send(item.logLevel, item.message);
                }

                Send(LogLevel.Debug, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
                _history.Clear();
            }
        }