ApplicationInsights.OwinExtensions.OperationIdContext.Set C# (CSharp) Метод

Set() публичный статический Метод

public static Set ( string value ) : void
value string
Результат void
        public static void Set(string value)
        {
            CallContext.LogicalSetData(Consts.OperationIdContextKey, value);
        }

Usage Example

Пример #1
0
        public override async Task Invoke(IOwinContext context)
        {
            var operationId = context.Get <string>(Consts.OperationIdContextKey);

            if (operationId != null)
            {
                OperationIdContext.Set(operationId);
            }

            await Next.Invoke(context);
        }
All Usage Examples Of ApplicationInsights.OwinExtensions.OperationIdContext::Set