Show / Hide Table of Contents

Class SoOperation

Inheritance
object
SoOperation
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top