ProfilerDiagnosticObserver
Assembly: ServiceStack.dll
View Source
Declaration
public sealed class ProfilerDiagnosticObserver : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object>>
Properties
AnalyzeCommandLength
View Source
Declaration
public static int AnalyzeCommandLength { get; set; }
Fields
entries
View Source
Declaration
protected readonly ConcurrentQueue<DiagnosticEntry> entries
Methods
IObserver<DiagnosticListener>.OnNext(DiagnosticListener)
View Source
Declaration
void IObserver<DiagnosticListener>.OnNext(DiagnosticListener diagnosticListener)
Parameters
Type | Name |
---|---|
DiagnosticListener | diagnosticListener |
OnCompleted()
View Source
Declaration
public void OnCompleted()
OnError(Exception)
View Source
Declaration
public void OnError(Exception error)
Parameters
Type | Name |
---|---|
System.Exception | error |
GetLatestEntries(Nullable<Int32>)
View Source
Declaration
public List<DiagnosticEntry> GetLatestEntries(int? take)
Returns
System.Collections.Generic.List<ServiceStack.DiagnosticEntry>
Parameters
Type | Name |
---|---|
System.Nullable<System.Int32> | take |
GetPendingEntries(Nullable<Int32>)
View Source
Declaration
public List<DiagnosticEntry> GetPendingEntries(int? take)
Returns
System.Collections.Generic.List<ServiceStack.DiagnosticEntry>
Parameters
Type | Name |
---|---|
System.Nullable<System.Int32> | take |
CreateDiagnosticEntry(DiagnosticEvent, DiagnosticEvent)
View Source
Declaration
public DiagnosticEntry CreateDiagnosticEntry(DiagnosticEvent e, DiagnosticEvent orig = null)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.DiagnosticEvent | e |
ServiceStack.DiagnosticEvent | orig |
SetException(DiagnosticEntry, Exception)
View Source
Declaration
public static void SetException(DiagnosticEntry to, Exception ex)
Parameters
Type | Name |
---|---|
ServiceStack.DiagnosticEntry | to |
System.Exception | ex |
Filter(DiagnosticEntry, DiagnosticEvent)
View Source
Declaration
public DiagnosticEntry Filter(DiagnosticEntry entry, DiagnosticEvent e)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.DiagnosticEntry | entry |
ServiceStack.DiagnosticEvent | e |
ToDiagnosticEntry(RequestDiagnosticEvent, RequestDiagnosticEvent)
View Source
Declaration
public DiagnosticEntry ToDiagnosticEntry(RequestDiagnosticEvent e, RequestDiagnosticEvent orig = null)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.RequestDiagnosticEvent | e |
ServiceStack.RequestDiagnosticEvent | orig |
ToDiagnosticEntry(MqRequestDiagnosticEvent, MqRequestDiagnosticEvent)
View Source
Declaration
public DiagnosticEntry ToDiagnosticEntry(MqRequestDiagnosticEvent e, MqRequestDiagnosticEvent orig = null)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.MqRequestDiagnosticEvent | e |
ServiceStack.MqRequestDiagnosticEvent | orig |
ToDiagnosticEntry(OrmLiteDiagnosticEvent, OrmLiteDiagnosticEvent)
View Source
Declaration
public DiagnosticEntry ToDiagnosticEntry(OrmLiteDiagnosticEvent e, OrmLiteDiagnosticEvent orig = null)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.OrmLiteDiagnosticEvent | e |
ServiceStack.OrmLiteDiagnosticEvent | orig |
ToDiagnosticEntry(RedisDiagnosticEvent, RedisDiagnosticEvent)
View Source
Declaration
public DiagnosticEntry ToDiagnosticEntry(RedisDiagnosticEvent e, RedisDiagnosticEvent orig = null)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.RedisDiagnosticEvent | e |
ServiceStack.RedisDiagnosticEvent | orig |
OnNext(KeyValuePair<String, Object>)
View Source
Declaration
public void OnNext(KeyValuePair<string, object> kvp)
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.Object> | kvp |
IObserver<DiagnosticListener>.OnError(Exception)
View Source
Declaration
void IObserver<DiagnosticListener>.OnError(Exception error)
Parameters
Type | Name |
---|---|
System.Exception | error |
IObserver<DiagnosticListener>.OnCompleted()
View Source
Declaration
void IObserver<DiagnosticListener>.OnCompleted()
Implements
System.IObserver<DiagnosticListener>
System.IObserver<System.Collections.Generic.KeyValuePair<System.String,System.Object>>