public ServerCallErrorInterceptor( IServerErrorHandler errorHandler, IMarshallerFactory marshallerFactory) { errorHandler.AssertNotNull(nameof(errorHandler)); marshallerFactory.AssertNotNull(nameof(marshallerFactory)); _errorHandler = errorHandler; _marshallerFactory = marshallerFactory; }
/// <summary> /// Adds the given error handler to the end of this list. /// </summary> /// <param name="errorHandler">The <see cref="IServerErrorHandler"/>.</param> public void Add(IServerErrorHandler errorHandler) { errorHandler.AssertNotNull(nameof(errorHandler)); _pipeline.Add(errorHandler); }