예제 #1
0
 private static void SetResourceType(ComputerResource resource)
 {
     if (resource == null)
     {
         LogicalCallContext.FreeData(nameof(ComputerResource));
     }
     else
     {
         LogicalCallContext.SetData(nameof(ComputerResource), resource);
     }
 }
예제 #2
0
 private static void RemoveAmbientContext()
 {
     LogicalCallContext.FreeData(AMBCTX_NAME);
 }