コード例 #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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public ProcessData(ISQLiteFileRepository repository, INetatmoDataHandler netatmoCloud, IOptions <AppSettings> appSettings, ISharedData sharedData)
 {
     _repository   = repository;
     _netatmoCloud = netatmoCloud;
     _appsettings  = appSettings.Value;
     _sharedData   = sharedData;
     StartExecutionLoop();
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 public SettingController(IMemoryCache cache, ISharedData sharedData)
 {
     _cache      = cache;
     _sharedData = sharedData;
 }
コード例 #7
0
ファイル: myExtension.cs プロジェクト: moose3/iRTVO
 public void ShutdownExtension()
 {
     CloseWindow();
     API        = null;
     SharedData = null;
 }
コード例 #8
0
ファイル: myExtension.cs プロジェクト: moose3/iRTVO
 public void InitializeExtension(ISimulationAPI api, ISharedData sharedData)
 {
     API        = api;
     SharedData = sharedData;
 }
コード例 #9
0
 public static void SetSharedData(ISharedData sharedData)
 {
     SharedData = sharedData;
 }
コード例 #10
0
 public UserAccountRepository(ISharedData data)
 {
     this.data = data;
 }
コード例 #11
0
ファイル: myExtension.cs プロジェクト: CloseUpDK/iRTVO
 public void ShutdownExtension()
 {
     CloseWindow();
     API = null;
     SharedData = null;
 }
コード例 #12
0
ファイル: myExtension.cs プロジェクト: CloseUpDK/iRTVO
 public void InitializeExtension(ISimulationAPI api, ISharedData sharedData)
 {
     API = api;
     SharedData = sharedData;
 }
コード例 #13
0
 public DD07Rule(ISharedData sharedData)
 {
     _sharedData = sharedData;
 }
コード例 #14
0
 public NetatmoDataHandler(IMemoryCache cache, ISharedData sharedData)
 {
     _cache      = cache;
     _sharedData = sharedData;
 }
コード例 #15
0
 public SensorDataController(IProcessData processData, ISQLiteFileRepository repository, ISharedData sharedData)
 {
     _processData = processData;
     _repository  = repository;
     _sharedData  = sharedData;
 }
コード例 #16
0
 public WeatherController(ISQLiteFileRepository repository, ISharedData sharedData)
 {
     _repository = repository;
     _sharedData = sharedData;
 }