コード例 #1
0
 private static void ClearContext(DataPortalContext context)
 {
     DistributionContext.SetLogicalExecutionLocation(DistributionContext.LogicalExecutionLocations.Client);
     if (!context.IsRemotePortal)
     {
         return;
     }
     DistributionContext.Clear();
     if (DistributionContext.AuthenticationType != "Windows")
     {
         DistributionContext.User = null;
     }
     LEnvironment.Principal = null;
 }