private static CommunicationInterceptors CreateDefaultInterceptors() { CommunicationInterceptors interceptors = new CommunicationInterceptors(); interceptors.Combine(new FailFastHandlerInterceptor()); return(interceptors); }
ICommunicationInterceptor IInterceptionFactory.CreateInterceptor() { if (this._interceptor == null) { CommunicationInterceptors interceptors = new CommunicationInterceptors(); if (this._settings.ResurrectionTime > TimeSpan.Zero) { this._failFastHandlerInterceptor = new FailFastHandlerInterceptor(this._settings.ResurrectionTime); interceptors.Combine(this._failFastHandlerInterceptor); } this._connectionStateObserver = new ConnectionStateInterceptor(this); interceptors.Combine(this._connectionStateObserver); this._interceptor = interceptors; } return(this._interceptor); }