public static BattleriteClient Create(
     IAssetClient assetClient,
     IMatchClient matchClient,
     IPlayerClient playerClient)
 {
     return(new BattleriteClient(assetClient, matchClient, playerClient));
 }
Beispiel #2
0
 public MatchService(IMatchClient matchClient, IUnitOfWorkManager unitOfWorkManager,
                     IMapper <MatchDetailsClientModel, MatchDetailsModel> matchDetailsMapper, ISessionManager sessionManager)
 {
     _matchClient        = matchClient;
     _matchDetailsMapper = matchDetailsMapper;
     _unitOfWorkManager  = unitOfWorkManager;
     _sessionManager     = sessionManager;
 }
 internal BattleriteClient(
     IAssetClient assets,
     IMatchClient matches,
     IPlayerClient players)
 {
     Players = players;
     Matches = matches;
     Assets  = assets;
 }
Beispiel #4
0
 public MatchMobileService(IMapper <MatchDetailsClientModel, MatchDetailsModel> matchDetailsMapper,
                           IMatchClient matchClient,
                           ISessionManager sessionManager,
                           IUnitOfWorkManager unitOfWorkManager, IResponseValidator responseValidator)
 {
     _matchClient        = matchClient;
     _matchDetailsMapper = matchDetailsMapper;
     _sessionManager     = sessionManager;
     _unitOfWorkManager  = unitOfWorkManager;
     _responseValidator  = responseValidator;
 }
Beispiel #5
0
        private IMatchClient CreateOrGetMatchClient(IRequestUrlBuilder requestUrlBuilder, IRequester requester)
        {
            IMatchClient matchClient = null;

            matchClientFactory.Or(() => new MatchClientFactory())
            .MatchSome(
                factory => matchClient = factory.Create(
                    requestUrlBuilder,
                    requester,
                    new JsonApiSerializerSettings()));

            return(matchClient);
        }
Beispiel #6
0
 public MatchService(IMatchClient matchClient, IMatchConvert convert)
 {
     this.matchClient = matchClient;
     this.convert     = convert;
 }
 public AdminController(IDbContextWrapper context, IMatchClient matchClient, IResultCoordinator resultCoordinator)
 {
     this.matchClient       = matchClient;
     this.context           = context;
     this.resultCoordinator = resultCoordinator;
 }
 public ResultCoordinator(IMatchClient matchClient, IDbContextWrapper dbContextWrapper, IBetResultMaker betResultMaker)
 {
     this.matchClient      = matchClient;
     this.dbContextWrapper = dbContextWrapper;
     this.betResultMaker   = betResultMaker;
 }
Beispiel #9
0
 public MatchProvider(IMatchClient matchClient, IMatchService matchService, IBetListProvider betListProvider)
 {
     this.matchClient     = matchClient;
     this.matchService    = matchService;
     this.betListProvider = betListProvider;
 }
Beispiel #10
0
 public MatchService()
 {
     _matchClient = RestService.For <IMatchClient>(Session.HostUrl);
 }