Microsoft.AspNetCore.SignalR.Messaging.ScaleoutStream.SetError C# (CSharp) Method

SetError() public method

public SetError ( Exception error ) : void
error System.Exception
return void
        public void SetError(Exception error)
        {
            Log(LogLevel.Error, "Error has happened with the following exception: {0}.", error);

            lock (_lockObj)
            {
                _perfCounters.ScaleoutErrorsTotal.Increment();
                _perfCounters.ScaleoutErrorsPerSec.Increment();

                Buffer();

                _error = error;
            }
        }