Beispiel #1
0
 internal void HttpExceptionFromSource(PersistedDataSource source, Exception ex)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.HttpExceptionFromSource(source.Name, ex.Message);
     }
 }
Beispiel #2
0
 internal void EmptyResponseReceivedFromSource(PersistedDataSource source)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.EmptyResponseReceivedFromSource(source.Name);
     }
 }
Beispiel #3
0
 internal void EndReceiveSourceResponseBody(PersistedDataSource source, int length)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.EndReceiveSourceResponseBody(source.Name, length);
     }
 }
Beispiel #4
0
 internal void EndSendSourceQuery(PersistedDataSource source, int status, string message)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.EndSendSourceQuery(source.Name, status, message);
     }
 }
Beispiel #5
0
 internal void BeginReceiveSourceResponseBody(PersistedDataSource source)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.BeginReceiveSourceResponseBody(source.Name);
     }
 }
Beispiel #6
0
 internal void BeginSendSourceQuery(PersistedDataSource source, Uri uri)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.BeginSendSourceQuery(source.Name, uri.ToString());
     }
 }
Beispiel #7
0
        internal void PersistedDataExceptionFromSource(PersistedDataSource source, Exception ex)
        {
            if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
            {
                if (ex.InnerException != null)
                {
                    this.PersistedDataExceptionFromSource(source, ex.InnerException);
                }

                this.PersistedDataExceptionFromSource(source.Name, ex.GetType().ToString(), ex.Message, ex.StackTrace);
            }
        }
        public PersistedDataSource AddDataSource(string dataSourceName)
        {
            lock (this.sources)
            {
                PersistedDataSource source;
                if (!this.sources.TryGetValue(dataSourceName, out source))
                {
                    source = new PersistedDataSource(dataSourceName, PersistedDataSourceStatus.Unknown);
                    this.sources.Add(source.Name, source);
                    this.dirty = true;
                }

                return(source);
            }
        }
Beispiel #9
0
 internal void EmptyResponseReceivedFromSource(PersistedDataSource source)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.EmptyResponseReceivedFromSource(source.Name);
     }
 }
Beispiel #10
0
 internal void HttpExceptionFromSource(PersistedDataSource source, Exception ex)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.HttpExceptionFromSource(source.Name, ex.Message);
     }
 }
Beispiel #11
0
        internal void PersistedDataExceptionFromSource(PersistedDataSource source, Exception ex)
        {
            if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
            {
                if (ex.InnerException != null)
                {
                    this.PersistedDataExceptionFromSource(source, ex.InnerException);
                }

                this.PersistedDataExceptionFromSource(source.Name, ex.GetType().ToString(), ex.Message, ex.StackTrace);
            }
        }
Beispiel #12
0
 internal void EndReceiveSourceResponseBody(PersistedDataSource source, int length)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.EndReceiveSourceResponseBody(source.Name, length);
     }
 }
Beispiel #13
0
 internal void BeginReceiveSourceResponseBody(PersistedDataSource source)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.BeginReceiveSourceResponseBody(source.Name);
     }
 }
Beispiel #14
0
 internal void EndSendSourceQuery(PersistedDataSource source, int status, string message)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.EndSendSourceQuery(source.Name, status, message);
     }
 }
Beispiel #15
0
 internal void BeginSendSourceQuery(PersistedDataSource source, Uri uri)
 {
     if (this.IsEnabled(EventLevel.Verbose, Keywords.PersistedDataAggregator))
     {
         this.BeginSendSourceQuery(source.Name, uri.ToString());
     }
 }