public CloudServiceClientBase(
            ILogger logger,
            IHttpClientFactory clientFactory,
            IHttpPlatformHelperService http_helper,
            IToast toast,
            IAuthHelper authHelper,
            ICloudServiceSettings settings,
            IModelValidator validator) : base(logger, http_helper, clientFactory)
        {
            this.authHelper = authHelper;
            this.toast      = toast;
            this.settings   = settings;
            ApiBaseUrl      = string.IsNullOrWhiteSpace(settings.ApiBaseUrl)
                ? throw new ArgumentNullException(nameof(ApiBaseUrl)) : settings.ApiBaseUrl;
            connection = new ApiConnection(logger, this, http_helper, validator);

            #region SetClients

            Account       = new AccountClient(connection);
            Manage        = new ManageClient(connection);
            AuthMessage   = new AuthMessageClient(connection);
            Version       = new VersionClient(connection);
            ActiveUser    = new ActiveUserClient(connection);
            Accelerate    = new AccelerateClient(connection);
            Script        = new ScriptClient(connection);
            DonateRanking = new DonateRankingClient(connection);

            #endregion
        }
 public GeneralHttpClientFactory(
     ILogger logger,
     IHttpPlatformHelperService http_helper,
     IHttpClientFactory clientFactory)
 {
     this.logger      = logger;
     this.http_helper = http_helper;
     _clientFactory   = clientFactory;
 }
Example #3
0
 public CloudServiceClient(
     ILoggerFactory loggerFactory,
     IHttpClientFactory clientFactory,
     IHttpPlatformHelperService httpPlatformHelper,
     IUserManager userManager,
     IToast toast,
     IOptions <AppSettings> options,
     IModelValidator validator) : base(
         loggerFactory.CreateLogger(ClientName_),
         clientFactory,
         httpPlatformHelper,
         toast,
         userManager,
         options.Value,
         validator)
 {
     this.userManager = userManager;
 }