예제 #1
0
 public ProductIdentifyService(IProductRepository productRepository, ISecretsFetcher secretsFetcher)
 {
     _productRepository = productRepository;
     _predictionKey     = secretsFetcher.GetCustomVisionPredictionKey;
     _trainingKey       = secretsFetcher.GetCustomVisionTrainingKey;
     _projectId         = new Guid(secretsFetcher.GetCustomVisionProjectId);
     _predictionId      = secretsFetcher.GetCustomVisionPredictionId;
     _endpointUrl       = secretsFetcher.GetCustomVisionEndpoint;
 }
        public QueueService(ISecretsFetcher secretsFetcher)
        {
            var storageAccount = CloudStorageAccount.Parse(secretsFetcher.GetStorageConnectionString);

            _queueClient = storageAccount.CreateCloudQueueClient();
        }
예제 #3
0
 public EmailService(ISecretsFetcher secretsFetcher)
 {
     _secretsFetcher = secretsFetcher;
 }
예제 #4
0
 public AzureStorageAccountFactory(ISecretsFetcher secretsFetcher)
 {
     _secretsFetcher = secretsFetcher;
 }