示例#1
0
 public static void FinishSession(UserContext userContext)
 {
     if (userContext.IsSendFromCacheSessionStarted)
     {
         using (RecipientCacheTransaction recipientCacheTransaction = new RecipientCacheTransaction("OWA.SendFromCache", userContext))
         {
             SendFromCache sendFromCache = SendFromCache.TryGetCache(userContext);
             if (sendFromCache != null)
             {
                 sendFromCache.FinishSession(new SendFromCache(userContext, recipientCacheTransaction.Configuration), recipientCacheTransaction.Configuration);
             }
         }
     }
 }
示例#2
0
 public static SendFromCache TryGetCache(UserContext userContext)
 {
     return(SendFromCache.TryGetCache(userContext, true));
 }