Exemplo n.º 1
0
 public BaseApiController(IUnitOfWork unitOfWork, IMailHelper mailHelper, IApiClient apiClient, IMyJwtDecoder jwtDecoder, ICache cache)
 {
     uow             = unitOfWork;
     this.apiClient  = apiClient;
     this.mailHelper = mailHelper;
     this.jwtDecoder = jwtDecoder;
     apiClient?.AddDefaultRequestHeader("apiKey", Properties.Settings.Default.jwtKey);
     this.cache = cache;
 }
Exemplo n.º 2
0
 public UserApiController(IUnitOfWork unitOfWork, IMailHelper mailHelper, IApiClient apiClient,
                          IMyJwtDecoder jwtDecoder, IEncryption encrypter, ICache cache) : base(unitOfWork, mailHelper, apiClient, jwtDecoder, cache)
 {
     this.encrypter = encrypter;
 }
Exemplo n.º 3
0
 public ProductApiController(IUnitOfWork unitOfWork, IMailHelper mailHelper, IApiClient apiClient, IMyJwtDecoder jwtDecoder, ICache cache) :
     base(unitOfWork, mailHelper, apiClient, jwtDecoder, cache)
 {
 }
 public InvoiceHistoryApiController(IUnitOfWork unitOfWork, IMailHelper mailHelper, IApiClient apiClient,
                                    IPdfManager pdfManager, IWebClient webClient, IMyJwtDecoder jwtDecoder, ICache cache) :
     base(unitOfWork, mailHelper, apiClient, jwtDecoder, cache)
 {
     this.pdfManager = pdfManager;
     this.webClient  = webClient;
 }