Пример #1
0
        public ServerCallErrorInterceptor(
            IServerErrorHandler errorHandler,
            IMarshallerFactory marshallerFactory)
        {
            errorHandler.AssertNotNull(nameof(errorHandler));
            marshallerFactory.AssertNotNull(nameof(marshallerFactory));

            _errorHandler      = errorHandler;
            _marshallerFactory = marshallerFactory;
        }
Пример #2
0
        /// <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);
        }