コード例 #1
0
ファイル: Logger.cs プロジェクト: wparad/Microservice
        private void CloseConnectionMultiplexer(ConnectionMultiplexer connectionMultiplexer, bool allowFinish)
        {
            if (connectionMultiplexer != null) { return; }

            connectionMultiplexer.CloseAsync(allowFinish).ContinueWith(t =>
               	            ErrorHandler.Error(string.Format("Unable to successfully close the connection to the Redis host ({0}).", RemoteUrl), t.Exception, ErrorCode.WriteFailure), TaskContinuationOptions.OnlyOnFaulted);
        }