public DataRepository(
     IBlobContext blobContext,
     ITableDbContext tableDbContext,
     ILoggerFactory log)
 {
     _blobContext    = blobContext;
     _tableDbContext = tableDbContext;
     _log            = log.CreateLogger <DataRepository>();
 }
예제 #2
0
 public DownloadService(ILoggerFactory log,
                        ITableDbContext tableDbContext,
                        ITranscriptionService transcriptionService,
                        IDataRepository dataRepository)
 {
     _log                  = log.CreateLogger <DownloadService>();
     _tableDbContext       = tableDbContext;
     _transcriptionService = transcriptionService ?? throw new ArgumentNullException(nameof(transcriptionService));
     _dataRepository       = dataRepository ?? throw new ArgumentNullException(nameof(dataRepository));
 }
예제 #3
0
 public BlobTrigger(ILoggerFactory log,
                    IOptions <AzStorageConfiguration> blobConfiguration,
                    IAssemblyAiService assemblyAiService,
                    ITableDbContext tableContext)
 {
     _log = log.CreateLogger <BlobTrigger>();
     _blobConfiguration = blobConfiguration.Value;
     _tableDbContext    = tableContext ?? throw new ArgumentNullException(nameof(tableContext));
     _assemblyAiService = assemblyAiService ?? throw new ArgumentNullException(nameof(assemblyAiService));
 }
 public DataRepository(
     IBlobContext blobContext,
     ITableDbContext tableDbContext,
     IAssemblyAiService assemblyAiService,
     ILoggerFactory log)
 {
     _blobContext       = blobContext;
     _tableDbContext    = tableDbContext;
     _assemblyAiService = assemblyAiService ?? throw new ArgumentNullException(nameof(assemblyAiService));
     _log = log.CreateLogger <DataRepository>();
 }
예제 #5
0
 public DataRepository(
     IBlobContext blobContext,
     ITableDbContext tableDbContext,
     ITranscriptionService transcriptionService,
     ILoggerFactory log)
 {
     _blobContext          = blobContext;
     _tableDbContext       = tableDbContext;
     _transcriptionService = transcriptionService ?? throw new ArgumentNullException(nameof(transcriptionService));
     _log = log.CreateLogger <DataRepository>();
 }
예제 #6
0
 public DownloadService(ILoggerFactory log, ITableDbContext tableDbContext)
 {
     _log            = log.CreateLogger <DownloadService>();
     _tableDbContext = tableDbContext;
 }
예제 #7
0
 public TableContextTests()
 {
     _sut = new TableDbContext(_log.Object, _tableConfiguration.Object);
 }
예제 #8
0
 public InboundFunction(ITableDbContext tableDb)
 {
     _tableContext = tableDb ?? throw new ArgumentException();
 }
예제 #9
0
 public OutboundFunction(ITableDbContext tableDb)
 {
     _tableContext = tableDb ?? throw new ArgumentException();
     _phoneNumber  = Environment.GetEnvironmentVariable("PhoneNumber");
 }
예제 #10
0
 public AutopilotTrigger(ITableDbContext tableDb)
 {
     _tableContext = tableDb ?? throw new ArgumentException();
 }