public SteamAccountService(
     IRepository <UserEntity> userRepository,
     IRepository <SteamAccountEntity> steamAccountRepository,
     IHmacEncoder <SteamAccountRequest> requestHmacEncoder,
     IHmacEncoder <SteamAccountResponse> responseHmacEncoder)
 {
     this.userRepository         = userRepository;
     this.steamAccountRepository = steamAccountRepository;
     this.requestHmacEncoder     = requestHmacEncoder;
     this.responseHmacEncoder    = responseHmacEncoder;
 }
Ejemplo n.º 2
0
        public ProductKeyManagerClient(
            IHmacEncoder <GetProductKeyRequest> getRequestEncoder,
            IHmacEncoder <UpdateProductKeyRequest> updateRequestEncoder,
            IHmacEncoder <ProductKeyResponse> getResponseEncoder,
            ProductKeyManagerSettings settings)
        {
            this.getRequestEncoder    = getRequestEncoder;
            this.updateRequestEncoder = updateRequestEncoder;
            this.getResponseEncoder   = getResponseEncoder;
            this.settings             = settings;

            httpClient = new HttpClient();
        }
 public RewardService(
     INotificationSender notificationSender,
     IRepository <UserEntity> userRepository,
     IRepository <RewardEntity> rewardRepository,
     IHmacEncoder <RecordRewardRequest> requestHmacEncoder,
     IHmacEncoder <RecordRewardRequest> responseHmacEncoder,
     IStorefrontDataRetriever storefrontDataRetriever,
     ILogger logger)
 {
     this.notificationSender      = notificationSender;
     this.userRepository          = userRepository;
     this.rewardRepository        = rewardRepository;
     this.requestHmacEncoder      = requestHmacEncoder;
     this.responseHmacEncoder     = responseHmacEncoder;
     this.storefrontDataRetriever = storefrontDataRetriever;
     this.logger = logger;
 }