Class ITelemetryHelperExtensions
A collection of extension methods for cdmdotnet.Logging.ITelemetryHelper.
Inheritance
Inherited Members
Namespace: Cqrs.Configuration
Assembly: Cqrs.dll
Syntax
public static class ITelemetryHelperExtensions
Methods
TrackRequest(ITelemetryHelper, String, Nullable<Guid>, DateTimeOffset, TimeSpan, String, Boolean, IDictionary<String, String>)
Send information about a request handled by the application.
Declaration
public static void TrackRequest(this ITelemetryHelper telemetryHelper, string name, Guid? token, DateTimeOffset startTime, TimeSpan duration, string responseCode, bool wasSuccessfull, IDictionary<string, string> properties = null)
Parameters
Type | Name | Description |
---|---|---|
cdmdotnet.Logging.ITelemetryHelper | telemetryHelper | The cdmdotnet.Logging.ITelemetryHelper being extended.s |
System.String | name | The request name. |
System.Nullable<System.Guid> | token | The token with user identifiable information. |
System.DateTimeOffset | startTime | The time when the page was requested. |
System.TimeSpan | duration | The time taken by the application to handle the request. |
System.String | responseCode | The response status code. |
System.Boolean | wasSuccessfull | True if the request was handled successfully by the application. |
System.Collections.Generic.IDictionary<System.String, System.String> | properties | Named string values you can use to search and classify events. |
TrackRequest(ITelemetryHelper, String, Nullable<Int32>, DateTimeOffset, TimeSpan, String, Boolean, IDictionary<String, String>)
Send information about a request handled by the application.
Declaration
public static void TrackRequest(this ITelemetryHelper telemetryHelper, string name, int ? token, DateTimeOffset startTime, TimeSpan duration, string responseCode, bool wasSuccessfull, IDictionary<string, string> properties = null)
Parameters
Type | Name | Description |
---|---|---|
cdmdotnet.Logging.ITelemetryHelper | telemetryHelper | The cdmdotnet.Logging.ITelemetryHelper being extended.s |
System.String | name | The request name. |
System.Nullable<System.Int32> | token | The token with user identifiable information. |
System.DateTimeOffset | startTime | The time when the page was requested. |
System.TimeSpan | duration | The time taken by the application to handle the request. |
System.String | responseCode | The response status code. |
System.Boolean | wasSuccessfull | True if the request was handled successfully by the application. |
System.Collections.Generic.IDictionary<System.String, System.String> | properties | Named string values you can use to search and classify events. |
TrackRequest(ITelemetryHelper, String, String, DateTimeOffset, TimeSpan, String, Boolean, IDictionary<String, String>)
Send information about a request handled by the application.
Declaration
public static void TrackRequest(this ITelemetryHelper telemetryHelper, string name, string token, DateTimeOffset startTime, TimeSpan duration, string responseCode, bool wasSuccessfull, IDictionary<string, string> properties = null)
Parameters
Type | Name | Description |
---|---|---|
cdmdotnet.Logging.ITelemetryHelper | telemetryHelper | The cdmdotnet.Logging.ITelemetryHelper being extended.s |
System.String | name | The request name. |
System.String | token | The token with user identifiable information. |
System.DateTimeOffset | startTime | The time when the page was requested. |
System.TimeSpan | duration | The time taken by the application to handle the request. |
System.String | responseCode | The response status code. |
System.Boolean | wasSuccessfull | True if the request was handled successfully by the application. |
System.Collections.Generic.IDictionary<System.String, System.String> | properties | Named string values you can use to search and classify events. |
TrackRequest<TAuthenticationToken>(ITelemetryHelper, String, TAuthenticationToken, DateTimeOffset, TimeSpan, String, Boolean, IDictionary<String, String>)
Send information about a request handled by the application.
Declaration
public static void TrackRequest<TAuthenticationToken>(this ITelemetryHelper telemetryHelper, string name, TAuthenticationToken token, DateTimeOffset startTime, TimeSpan duration, string responseCode, bool wasSuccessfull, IDictionary<string, string> properties = null)where TAuthenticationToken : ISingleSignOnToken
Parameters
Type | Name | Description |
---|---|---|
cdmdotnet.Logging.ITelemetryHelper | telemetryHelper | The cdmdotnet.Logging.ITelemetryHelper being extended.s |
System.String | name | The request name. |
TAuthenticationToken | token | The token with user identifiable information. |
System.DateTimeOffset | startTime | The time when the page was requested. |
System.TimeSpan | duration | The time taken by the application to handle the request. |
System.String | responseCode | The response status code. |
System.Boolean | wasSuccessfull | True if the request was handled successfully by the application. |
System.Collections.Generic.IDictionary<System.String, System.String> | properties | Named string values you can use to search and classify events. |
Type Parameters
Name | Description |
---|---|
TAuthenticationToken |