public NameSorterService(IGenderizeClient client, IMemoryCache memoryCache, ILogger <NameSorterService> logger, IPersonRepository personRepository)
        {
            _cache                = memoryCache;
            this.logger           = logger;
            this.personRepository = personRepository;

            this.client = client;
        }
Пример #2
0
 public FamilyNameController(
     IGenderizeClient genderizeClient,
     IOptionsSnapshot <GenderizeApiOptions> genderizeOptions,
     ILoggerFactory logger)
 {
     this.genderizeClient  = genderizeClient;
     this.genderizeOptions = genderizeOptions;
     this.logger           = logger.CreateLogger <FamilyNameController>();
 }
Пример #3
0
 public HomeController(INameSorterService nameSorterService, IGenderizeClient client, IPersonRepository repository)
 {
     this.nameSorterService = nameSorterService;
     this.client            = client;
     this._repository       = repository;
 }
Пример #4
0
 public GenderController(IGenderizeClient genderizeClient)
 {
     _genderizeClient = genderizeClient;
 }