/// <summary>
 /// Creates new instance of <see cref="TablesManager"/>
 /// </summary>
 /// <param name="instanceManager">Instance of <see cref="InstanceManager"/></param>
 /// <param name="tablesRepository">Instance of <see cref="ITablesRepository"/></param>
 /// <param name="mapper">Instance of <see cref="IMapper"/></param>
 public TablesManager(
     IInstanceManager instanceManager,
     ITablesRepository tablesRepository,
     IMapper mapper)
 {
     _instanceManager  = instanceManager ?? throw new ArgumentNullException(nameof(instanceManager));
     _tablesRepository = tablesRepository ?? throw new ArgumentNullException(nameof(tablesRepository));
     _mapper           = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Пример #2
0
 public StateMachineManager(
     ICacheAdapter cacheAdapter,
     ITablesRepository tablesRepository,
     ITablesUsagePolicy tablesUsagePolicy)
 {
     _cache                  = cacheAdapter ?? throw new ArgumentNullException(nameof(cacheAdapter));
     _tables                 = tablesRepository ?? throw new ArgumentNullException(nameof(tablesRepository));
     _tablesUsagePolicy      = tablesUsagePolicy ?? throw new ArgumentNullException(nameof(tablesUsagePolicy));
     _defaultCacheExpiration = TimeSpan.FromMinutes(DefaultCacheExpirationInMinutes);
 }
Пример #3
0
 public TablesService(ITablesRepository tablesRepository)
 {
     _tablesRepository = tablesRepository;
 }
Пример #4
0
 public TablesController(ITablesRepository tablesRepository, IClientValidator certificateValidator)
 {
     log.DebugEx("TablesController created");
     _tablesRepository = tablesRepository;
     _clientValidator  = certificateValidator;
 }
Пример #5
0
 public TablesController(ITablesRepository tablesRepository)
 {
     log.DebugEx("TablesController created");
     _tablesRepository = tablesRepository;
 }
 public TablesManager(ITablesRepository repository)
     : base(repository)
 {
 }
 public TablesController(ITablesRepository tablesRepository)
 {
     log.DebugEx("TablesController created");
     _tablesRepository = tablesRepository;
 }