1
0
Форкнуть 0
This commit is contained in:
Pericles Alves 2021-01-26 21:00:19 -08:00
Родитель 171ad06b7c
Коммит 4435787928
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -71,7 +71,7 @@ namespace DeviceBridge
services.AddSingleton<ISecretsProvider>(secretsService);
services.AddSingleton(_logger);
services.AddSingleton<IEncryptionService, EncryptionService>();
services.AddSingleton<IStorageProvider>(provider => new StorageProvider(sqlConnectionString, provider.GetRequiredService<EncryptionService>()));
services.AddSingleton<IStorageProvider>(provider => new StorageProvider(sqlConnectionString, provider.GetRequiredService<IEncryptionService>()));
services.AddSingleton(provider => new ConnectionManager(provider.GetRequiredService<Logger>(), idScope, sasKey, maxPoolSize, provider.GetRequiredService<IStorageProvider>()));
services.AddSingleton<ISubscriptionService>(provider => new SubscriptionService(provider.GetRequiredService<Logger>(), provider.GetRequiredService<ConnectionManager>(), provider.GetRequiredService<IStorageProvider>(), provider.GetRequiredService<IHttpClientFactory>(), rampupBatchSize, rampupBatchIntervalMs));
services.AddSingleton<IBridgeService, BridgeService>();

Просмотреть файл

@ -1,7 +1,7 @@
# Use SDK to build release package
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-img
WORKDIR /app
COPY . ./
COPY DeviceBridge ./
RUN dotnet --info
RUN dotnet publish -c Release -o out
@ -11,4 +11,4 @@ WORKDIR /app
COPY --from=build-img /app/out ./
ENTRYPOINT ["dotnet", "DeviceBridge.dll"]
EXPOSE 5001
EXPOSE 5001