예제 #1
0
        /// <summary>
        /// Initializes logs store.
        /// </summary>
        /// <param name="userConnection">User connection.</param>
        /// <param name="store">Logs store.</param>
        public static void InitializeLogStore(UserConnection userConnection, TermCalculationLogStore store)
        {
            TermCalculationLogStoreLoader loader = GetLoader(userConnection);

            if (loader != null)
            {
                loader.Store = store;
                userConnection.SessionCache.WithLocalCaching()
                .SetOrRemoveValue(TermCalculationLogStore.CalculationLogEnabledCacheName,
                                  true);
            }
        }
예제 #2
0
 /// <summary>
 /// Initializes new instance of <see cref="TermCalculationLogger"/>.
 /// </summary>
 /// <param name="logStore">Store of calculation logs <see cref="TermCalculationLogStore"/>.</param>
 public TermCalculationLogger(TermCalculationLogStore logStore)
 {
     _logStore = logStore;
 }
예제 #3
0
 public CaseTermStrategyQueue(UserConnection userConnection)
 {
     UserConnection       = userConnection;
     _calculationLogStore = TermCalculationLogStoreInitializer.GetStore(userConnection);
 }
 public CaseTermIntervalSelector(UserConnection userConnection)
 {
     UserConnection       = userConnection;
     _calculationLogStore = TermCalculationLogStoreInitializer.GetStore(userConnection);
 }