private static void SetResourceType(ComputerResource resource) { if (resource == null) { LogicalCallContext.FreeData(nameof(ComputerResource)); } else { LogicalCallContext.SetData(nameof(ComputerResource), resource); } }
private static void RemoveAmbientContext() { LogicalCallContext.FreeData(AMBCTX_NAME); }