Esempio n. 1
0
 public ReportTestHelper(
     BrandCommands brandCommands,
     BrandQueries brandQueries,
     IBrandRepository brandRepository,
     FakeBus bus,
     OfflineDepositCommands depositCommands,
     IGameServerIntegrationRepository gameServerIntegrationRepository,
     PaymentQueries paymentQueries,
     IPaymentRepository paymentRepository,
     IPermissionProvider permissionProvider,
     PlayerCommands playerCommands,
     PlayerQueries playerQueries,
     RoleService roleService,
     ISharedData sharedData,
     UserService userService,
     WalletCommands walletWalletCommands
     )
 {
     _brandCommands        = brandCommands;
     _brandQueries         = brandQueries;
     _brandRepository      = brandRepository;
     _bus                  = bus;
     _depositCommands      = depositCommands;
     _paymentQueries       = paymentQueries;
     _paymentRepository    = paymentRepository;
     _permissionProvider   = permissionProvider;
     _gsiRepository        = gameServerIntegrationRepository;
     _playerCommands       = playerCommands;
     _playerQueries        = playerQueries;
     _roleService          = roleService;
     _sharedData           = sharedData;
     _userService          = userService;
     _walletWalletCommands = walletWalletCommands;
 }
 public static T Get <T>(this ISharedData sharedData, string name) where T : ISerializableViaName
 {
     if (!sharedData.TryGet(typeof(T), name, out var obj))
     {
         throw new ArgumentException($"There is no shared instance of {typeof(T).Name} with name {name}");
     }
     return((T)obj);
 }
Esempio n. 3
0
 public ProcessData(ISQLiteFileRepository repository, INetatmoDataHandler netatmoCloud, IOptions <AppSettings> appSettings, ISharedData sharedData)
 {
     _repository   = repository;
     _netatmoCloud = netatmoCloud;
     _appsettings  = appSettings.Value;
     _sharedData   = sharedData;
     StartExecutionLoop();
 }
 public static ISerializableViaName Get(this ISharedData sharedData, Type type, string name)
 {
     if (!sharedData.TryGet(type, name, out var serializableViaName))
     {
         throw new ArgumentException($"There is no shared instance of {type.Name} with name {name}");
     }
     return(serializableViaName);
 }
 public static bool TryGet <T>(this ISharedData sharedData, string name, out T obj) where T : ISerializableViaName
 {
     obj = default(T);
     if (!sharedData.TryGet(typeof(T), name, out var serializableViaName))
     {
         return(false);
     }
     obj = (T)serializableViaName;
     return(true);
 }
 public SettingController(IMemoryCache cache, ISharedData sharedData)
 {
     _cache      = cache;
     _sharedData = sharedData;
 }
Esempio n. 7
0
 public void ShutdownExtension()
 {
     CloseWindow();
     API        = null;
     SharedData = null;
 }
Esempio n. 8
0
 public void InitializeExtension(ISimulationAPI api, ISharedData sharedData)
 {
     API        = api;
     SharedData = sharedData;
 }
Esempio n. 9
0
 public static void SetSharedData(ISharedData sharedData)
 {
     SharedData = sharedData;
 }
 public UserAccountRepository(ISharedData data)
 {
     this.data = data;
 }
Esempio n. 11
0
 public void ShutdownExtension()
 {
     CloseWindow();
     API = null;
     SharedData = null;
 }
Esempio n. 12
0
 public void InitializeExtension(ISimulationAPI api, ISharedData sharedData)
 {
     API = api;
     SharedData = sharedData;
 }
Esempio n. 13
0
 public DD07Rule(ISharedData sharedData)
 {
     _sharedData = sharedData;
 }
 public NetatmoDataHandler(IMemoryCache cache, ISharedData sharedData)
 {
     _cache      = cache;
     _sharedData = sharedData;
 }
Esempio n. 15
0
 public SensorDataController(IProcessData processData, ISQLiteFileRepository repository, ISharedData sharedData)
 {
     _processData = processData;
     _repository  = repository;
     _sharedData  = sharedData;
 }
Esempio n. 16
0
 public WeatherController(ISQLiteFileRepository repository, ISharedData sharedData)
 {
     _repository = repository;
     _sharedData = sharedData;
 }