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); } } } }
public static SendFromCache TryGetCache(UserContext userContext) { return(SendFromCache.TryGetCache(userContext, true)); }