Click or drag to resize
CodeActivityContextExtensionsGetTracingService Method
Получение экземпляра сервиса трассировки.

Namespace:  PZone.Xrm.Workflow
Assembly:  PZone.SDK.Xrm.Workflow (in PZone.SDK.Xrm.Workflow.dll) Version: 8.0.0.0 (8.0.0.0)
Syntax
C#
public static ITracingService GetTracingService(
	this CodeActivityContext context
)

Parameters

context
Type: System.ActivitiesCodeActivityContext
Экземпляр класса CodeActivityContext.

Return Value

Type: ITracingService
Метод возвращает ссылку на экземпляр сервиса трассировки.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CodeActivityContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Examples
protected override void Execute(CodeActivityContext context)
{
    ...
    var tracingService = context.GetTracingService();
    ...
}
See Also