Class SoOperation
Inherited Members
Namespace: SuperOffice.Diagnostics
Assembly: SoCore.dll
Syntax
public class SoOperation
Constructors
SoOperation()
Declaration
public SoOperation()
Methods
StartOperation(string, string, IDictionary<string, string>)
Log an operation with properties. Will create a Dependency telemetry item in Application Insights.
Declaration
public IDisposable StartOperation(string operationname, string dependencyTypeName, IDictionary<string, string> tags = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | operationname | Name of operation. Will show up as Name on the Dependency telemetry item in Application Insights. |
| string | dependencyTypeName | Type of dependency, "InProc | SuperOffice.{xxx}" is the suggested format for this property. Will show up as Type on the Dependency telemetry item in Application Insights |
| IDictionary<string, string> | tags | Additional properties (key/value-pair, string:string) on the operation. Each pair will show up as a Custom Dimension on the Dependency telemetry item in Application Insights. |
Returns
| Type | Description |
|---|---|
| IDisposable | An operation tracer. Dispose it to signal end of operation. |