Ejemplo n.º 1
0
 public DefaultChatHistoryImporter(IClock clock,
                                   HttpMessageInvoker httpClient,
                                   IUrlHelper urlHelper,
                                   IRepository <FileRecord> fileRepo,
                                   IRepository <WeChatAccount> weChatAccountRepo,
                                   IFileSystem fileSystem,
                                   ICurrentUser currentUser, IOptions <ChatyOptions> chatyOptions)
 {
     _clock             = clock;
     _httpClient        = httpClient;
     _urlHelper         = urlHelper;
     _fileRepo          = fileRepo;
     _weChatAccountRepo = weChatAccountRepo;
     _fileSystem        = fileSystem;
     _currentUser       = currentUser;
     _chatyOptions      = chatyOptions.Value;
 }
Ejemplo n.º 2
0
 public ChatyApiService(IOptions <ChatyOptions> chatyOptions, HttpMessageInvoker httpClient, ILogger <ChatyApiService> logger)
 {
     _chatyOptions = chatyOptions?.Value;
     _httpClient   = httpClient;
     _logger       = logger;
 }