/// <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); } }
/// <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; }
public CaseTermStrategyQueue(UserConnection userConnection) { UserConnection = userConnection; _calculationLogStore = TermCalculationLogStoreInitializer.GetStore(userConnection); }
public CaseTermIntervalSelector(UserConnection userConnection) { UserConnection = userConnection; _calculationLogStore = TermCalculationLogStoreInitializer.GetStore(userConnection); }