/// <summary>
 /// Initializes a new instance of the <see cref="LocationReportClientRepository" /> class.
 /// </summary>
 /// <param name="applicationSettings">The application settings.</param>
 public LocationReportClientRepository(IApplicationSettings applicationSettings)
 {
     if (applicationSettings != null)
     {
         this.locationClient = DIContainer.Instance.Resolve<ILocationClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ReportingServiceBaseAddress) });
     }
 }
Exemplo n.º 2
0
 public MembersController(ITeamRepository repo, //IMapper mapper,
                          ILocationClient locationClient)
 {
     _repository = repo;
     //_mapper = mapper;
     _locationClient = locationClient;
 }
Exemplo n.º 3
0
 private ClashRoyaleApiStandalone(IPlayerClient playerClient, IClanClient clanClient, ILocationClient locationClient, ITournamentClient tournamentClient, ICardClient cardClient)
 {
     PlayerClient     = playerClient;
     ClanClient       = clanClient;
     LocationClient   = locationClient;
     TournamentClient = tournamentClient;
     CardClient       = cardClient;
 }
 public MembersController(
     ITeamRepository teamRepository,
     IMembersRepository membersRepository,
     ILocationClient locationClient)
 {
     this.teamRepository    = teamRepository;
     this.membersRepository = membersRepository;
     this.locationClient    = locationClient;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShipClientRepository" /> class.
 /// </summary>
 /// <param name="applicationSettings">The application settings.</param>
 public ShipClientRepository(IApplicationSettings applicationSettings)
 {
     if (applicationSettings != null)
     {
         this.applicationSettings = applicationSettings;
         this.shipClient = DIContainer.Instance.Resolve<IShipClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipServiceBaseAddress) });
         this.stateroomClient = DIContainer.Instance.Resolve<IStateroomClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipServiceBaseAddress) });
         this.locationClient = DIContainer.Instance.Resolve<ILocationClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipServiceBaseAddress) });
         this.portManningClient = DIContainer.Instance.Resolve<IPortManningClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipServiceBaseAddress) });
     }
 }
        /// <summary>
        /// client は Prism.Forms(というかUnity)によりDIされる
        /// </summary>
        public LocationUseCase(ILocationClient client)
        {
            _client = client;

            // LocationChanged イベントを Observable に変換
            Location = Observable.FromEventPattern <Location>(
                h => client.LocationChanged += h,
                h => client.LocationChanged -= h)
                       .Select(args => args.EventArgs);

            // IsRunningChanged イベントを Observable に変換
            IsRunning = Observable.FromEventPattern <bool>(
                h => client.IsRunningChanged += h,
                h => client.IsRunningChanged -= h)
                        .Select(args => args.EventArgs);
        }
Exemplo n.º 7
0
 public MembersController(ITeamRepository teamrepository, ILocationClient locationClient)
 {
     this.TeamRepository = teamrepository;
     this.LocationClient = locationClient;
 }
Exemplo n.º 8
0
 public TeamLogic(ITeamRepository theRepository, ILocationClient client)
 {
     repository     = theRepository;
     locationClient = client;
 }
Exemplo n.º 9
0
 public MembersController(ITeamRepository repository, ILocationClient locationClient)
 {
     this.repository     = repository;
     this.locationClient = locationClient;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShipClientRepository"/> class.
 /// </summary>
 /// <param name="applicationSettings">The application settings.</param>
 public ShipClientRepository(IApplicationSetting applicationSettings)
 {
     if (applicationSettings != null)
     {
         this.shipLocationClient = DIContainer.Instance.Resolve<ILocationClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipServiceBaseAddress) });
         this.stateroomClient = DIContainer.Instance.Resolve<IStateroomClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipServiceBaseAddress) });
         this.stateroomCategoryClient = DIContainer.Instance.Resolve<IStateroomCategoriesClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipServiceBaseAddress) });
         this.stateroomCategoryTypeClient = DIContainer.Instance.Resolve<IStateroomCategoryTypesClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipServiceBaseAddress) });
         this.shipClient = DIContainer.Instance.Resolve<IShipClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipServiceBaseAddress) });
         this.safetyRoleClient = DIContainer.Instance.Resolve<ISafetyRoleClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipServiceBaseAddress) });
     }
 }
Exemplo n.º 11
0
 public MembersController(ITeamRepository repo, ILocationClient locationClient)
 {
     _repository     = repo;
     _locationClient = locationClient;
 }
Exemplo n.º 12
0
 public TeamController(ITeamLogic hanlder, ILocationClient client)
 {
     logicHandler   = hanlder;
     locationClient = client;
 }