public static Stream CreateTraceableInputStream(Stream inputStream, RSTrace trace, string description) { return(new MonitoredInputStream(inputStream, delegate(int byteCount, string content, bool capacityReached) { trace.Trace(TraceLevel.Info, "{0}: bytes={1}, content={2}{3}", description, byteCount, content.MarkAsPrivate(), capacityReached ? "..." : string.Empty); })); }
public DataSourceInfoCollection(DataSourceInfoCollection other) { RSTrace processingTracer = RSTrace.ProcessingTracer; processingTracer.Assert(other != null); processingTracer.Assert(other.m_collection != null); m_collection = (Hashtable)other.m_collection.Clone(); }
public void Add(DataSourceInfo dataSource) { if (dataSource.OriginalName == null) { RSTrace processingTracer = RSTrace.ProcessingTracer; processingTracer.Assert(this.m_collection.Count == 0, "Adding more than one data source with null original name"); this.m_collection.Add("", dataSource); } else if (!this.m_collection.ContainsKey(dataSource.OriginalName)) { this.m_collection.Add(dataSource.OriginalName, dataSource); } }
protected ReportProcessingExceptionBase(ErrorCode errorCode, string localizedMessage, Exception innerException, RSTrace tracer, string additionalTraceMessage, params object[] exceptionData) : base(errorCode, localizedMessage, innerException, tracer, additionalTraceMessage, exceptionData) { }