コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MemoryTraceWriter"/> class.
        /// </summary>
        /// <param name="traceStore">The <see cref="TraceStore"/> in which to store traces.</param>
        public MemoryTraceWriter(MemoryTraceStore traceStore)
        {
            if (traceStore == null)
            {
                throw new ArgumentNullException("traceStore");
            }

            _traceStore = traceStore;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MemoryTraceWriter"/> class.
        /// </summary>
        /// <param name="traceStore">The <see cref="TraceStore"/> in which to store traces.</param>
        public MemoryTraceWriter(MemoryTraceStore traceStore)
        {
            if (traceStore == null)
            {
                throw new ArgumentNullException("traceStore");
            }

            _traceStore = traceStore;
        }