private InitializeOperationIdContext ( IOwinContext context ) : void | ||
context | IOwinContext | |
return | void |
private void InitializeOperationIdContext(IOwinContext context)
{
string idContextKey;
if (_configuration.ShouldTryGetIdFromHeader &&
TryGetIdFromHeader(context, out idContextKey))
{
OperationIdContext.Set(idContextKey);
}
else
{
OperationIdContext.Create();
}
context.Set(Consts.OperationIdContextKey, OperationIdContext.Get());
}