Ejemplo n.º 1
0
        /// <summary>
        ///		Initializes a new instance of the <see cref="StreamLoggingMessageFilter&lt;T&gt;"/> class.
        /// </summary>
        /// <param name="logger">The <see cref="IMessagePackStreamLogger"/> which will be log sink.</param>
        /// <exception cref="ArgumentNullException">
        ///		<paramref name="logger"/> is <c>null</c>.
        /// </exception>
        protected StreamLoggingMessageFilter(IMessagePackStreamLogger logger)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            Contract.EndContractBlock();

            this._logger = logger;
        }
Ejemplo n.º 2
0
        /// <summary>
        ///		Initializes a new instance of the <see cref="StreamLoggingMessageFilter&lt;T&gt;"/> class.
        /// </summary>
        /// <param name="logger">The <see cref="IMessagePackStreamLogger"/> which will be log sink.</param>
        /// <exception cref="ArgumentNullException">
        ///		<paramref name="logger"/> is <c>null</c>.
        /// </exception>
        protected StreamLoggingMessageFilterProvider(IMessagePackStreamLogger logger)
        {
            Contract.EndContractBlock();

            Logger = logger ?? throw new ArgumentNullException(nameof(logger));
        }
Ejemplo n.º 3
0
 /// <summary>
 ///		Initializes a new instance of the <see cref="ServerStreamLoggingMessageFilterProvider"/> class.
 /// </summary>
 /// <param name="logger">The <see cref="IMessagePackStreamLogger"/> which will be log sink.</param>
 /// <exception cref="ArgumentNullException">
 ///		<paramref name="logger"/> is <c>null</c>.
 /// </exception>
 public ServerStreamLoggingMessageFilterProvider(IMessagePackStreamLogger logger)
     : base(logger)
 {
     this._filterInstance = new ServerStreamLoggingMessageFilter(this.Logger);
 }
 /// <summary>
 ///		Initializes a new instance of the <see cref="ClientStreamLoggingMessageFilterProvider"/> class.
 /// </summary>
 /// <param name="logger">The <see cref="IMessagePackStreamLogger"/> which will be log sink.</param>
 /// <exception cref="ArgumentNullException">
 ///		<paramref name="logger"/> is <c>null</c>.
 /// </exception>
 public ClientStreamLoggingMessageFilterProvider(IMessagePackStreamLogger logger) : base(logger)
 {
     filterInstance = new ClientStreamLoggingMessageFilter(Logger);
 }
 /// <summary>
 ///		Initializes a new instance of the <see cref="ServerStreamLoggingMessageFilter"/> class.
 /// </summary>
 /// <param name="logger">The <see cref="IMessagePackStreamLogger"/> which will be log sink.</param>
 /// <exception cref="ArgumentNullException">
 ///		<paramref name="logger"/> is <c>null</c>.
 /// </exception>
 public ServerStreamLoggingMessageFilter(IMessagePackStreamLogger logger) : base(logger)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientStreamLoggingMessageFilter"/> class.
 /// </summary>
 /// <param name="logger">The <see cref="IMessagePackStreamLogger"/> which will be log sink.</param>
 /// <exception cref="ArgumentNullException">
 ///		<paramref name="logger"/> is <c>null</c>.
 /// </exception>
 public ClientStreamLoggingMessageFilter(IMessagePackStreamLogger logger) : base(logger)
 {
 }