Browse Source

update preview7

features/migration-dotnet3
Erik Pique 5 years ago
parent
commit
50a1e1311e
29 changed files with 83 additions and 42 deletions
  1. +1
    -0
      src/ApiGateways/Mobile.Bff.Shopping/aggregator/Mobile.Shopping.HttpAggregator.csproj
  2. +3
    -1
      src/ApiGateways/Mobile.Bff.Shopping/aggregator/Startup.cs
  3. +3
    -1
      src/ApiGateways/Web.Bff.Shopping/aggregator/Startup.cs
  4. +1
    -0
      src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj
  5. +1
    -0
      src/Services/Basket/Basket.API/Basket.API.csproj
  6. +3
    -1
      src/Services/Basket/Basket.API/Startup.cs
  7. +1
    -0
      src/Services/Catalog/Catalog.API/Catalog.API.csproj
  8. +2
    -0
      src/Services/Catalog/Catalog.API/Startup.cs
  9. +22
    -17
      src/Services/Identity/Identity.API/Startup.cs
  10. +1
    -0
      src/Services/Location/Locations.API/Locations.API.csproj
  11. +3
    -0
      src/Services/Location/Locations.API/Startup.cs
  12. +1
    -0
      src/Services/Marketing/Marketing.API/Marketing.API.csproj
  13. +2
    -1
      src/Services/Marketing/Marketing.API/Startup.cs
  14. +1
    -0
      src/Services/Ordering/Ordering.API/Ordering.API.csproj
  15. +3
    -1
      src/Services/Ordering/Ordering.API/Startup.cs
  16. +1
    -0
      src/Services/Ordering/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj
  17. +1
    -0
      src/Services/Ordering/Ordering.SignalrHub/Ordering.SignalrHub.csproj
  18. +1
    -0
      src/Services/Payment/Payment.API/Payment.API.csproj
  19. +3
    -2
      src/Services/Webhooks/Webhooks.API/Startup.cs
  20. +1
    -0
      src/Services/Webhooks/Webhooks.API/Webhooks.API.csproj
  21. +2
    -0
      src/Web/WebMVC/Startup.cs
  22. +3
    -2
      src/Web/WebMVC/WebMVC.csproj
  23. +2
    -1
      src/Web/WebSPA/Startup.cs
  24. +1
    -0
      src/Web/WebSPA/WebSPA.csproj
  25. +3
    -1
      src/Web/WebStatus/Startup.cs
  26. +1
    -0
      src/Web/WebStatus/WebStatus.csproj
  27. +5
    -3
      src/Web/WebhookClient/Startup.cs
  28. +1
    -0
      src/Web/WebhookClient/WebhookClient.csproj
  29. +10
    -11
      src/_build/dependencies.props

+ 1
- 0
src/ApiGateways/Mobile.Bff.Shopping/aggregator/Mobile.Shopping.HttpAggregator.csproj View File

@ -6,6 +6,7 @@
<RootNamespace>Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator</RootNamespace>
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>


+ 3
- 1
src/ApiGateways/Mobile.Bff.Shopping/aggregator/Startup.cs View File

@ -50,6 +50,8 @@ namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator
.AddCustomAuthentication(Configuration)
.AddDevspaces()
.AddHttpServices();
services.AddControllers();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@ -80,6 +82,7 @@ namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
endpoints.MapHealthChecks("/hc", new HealthCheckOptions()
{
Predicate = _ => true,
@ -89,7 +92,6 @@ namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator
{
Predicate = r => r.Name.Contains("self")
});
endpoints.MapDefaultControllerRoute();
});
app.UseSwagger().UseSwaggerUI(c =>


+ 3
- 1
src/ApiGateways/Web.Bff.Shopping/aggregator/Startup.cs View File

@ -50,6 +50,8 @@ namespace Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator
.AddCustomAuthentication(Configuration)
.AddDevspaces()
.AddApplicationServices();
services.AddControllers();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@ -79,6 +81,7 @@ namespace Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
endpoints.MapHealthChecks("/hc", new HealthCheckOptions()
{
Predicate = _ => true,
@ -88,7 +91,6 @@ namespace Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator
{
Predicate = r => r.Name.Contains("self")
});
endpoints.MapDefaultControllerRoute();
});
app.UseSwagger()


+ 1
- 0
src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj View File

@ -6,6 +6,7 @@
<RootNamespace>Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator</RootNamespace>
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>


+ 1
- 0
src/Services/Basket/Basket.API/Basket.API.csproj View File

@ -5,6 +5,7 @@
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>


+ 3
- 1
src/Services/Basket/Basket.API/Startup.cs View File

@ -60,6 +60,8 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API
.SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
.AddControllersAsServices();
services.AddControllers();
ConfigureAuthService(services);
services.AddCustomHealthCheck(Configuration);
@ -200,6 +202,7 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
endpoints.MapHealthChecks("/hc", new HealthCheckOptions()
{
Predicate = _ => true,
@ -209,7 +212,6 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API
{
Predicate = r => r.Name.Contains("self")
});
endpoints.MapDefaultControllerRoute();
});
app.UseSwagger()


+ 1
- 0
src/Services/Catalog/Catalog.API/Catalog.API.csproj View File

@ -9,6 +9,7 @@
<UserSecretsId>aspnet-Catalog.API-20161122013618</UserSecretsId>
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>


+ 2
- 0
src/Services/Catalog/Catalog.API/Startup.cs View File

@ -55,6 +55,8 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API
.AddSwagger()
.AddCustomHealthCheck(Configuration);
services.AddControllers();
var container = new ContainerBuilder();
container.Populate(services);


+ 22
- 17
src/Services/Identity/Identity.API/Startup.cs View File

@ -7,6 +7,7 @@ using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.eShopOnContainers.Services.Identity.API.Certificates;
using Microsoft.eShopOnContainers.Services.Identity.API.Data;
@ -39,13 +40,13 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
// Add framework services.
services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(Configuration["ConnectionString"],
sqlServerOptionsAction: sqlOptions =>
{
sqlOptions.MigrationsAssembly(typeof(Startup).GetTypeInfo().Assembly.GetName().Name);
//Configuring Connection Resiliency: https://docs.microsoft.com/en-us/ef/core/miscellaneous/connection-resiliency
sqlOptions.EnableRetryOnFailure(maxRetryCount: 15, maxRetryDelay: TimeSpan.FromSeconds(30), errorNumbersToAdd: null);
}));
options.UseSqlServer(Configuration["ConnectionString"],
sqlServerOptionsAction: sqlOptions =>
{
sqlOptions.MigrationsAssembly(typeof(Startup).GetTypeInfo().Assembly.GetName().Name);
//Configuring Connection Resiliency: https://docs.microsoft.com/en-us/ef/core/miscellaneous/connection-resiliency
sqlOptions.EnableRetryOnFailure(maxRetryCount: 15, maxRetryDelay: TimeSpan.FromSeconds(30), errorNumbersToAdd: null);
}));
services.AddIdentity<ApplicationUser, IdentityRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
@ -94,17 +95,20 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
});
})
.AddOperationalStore(options =>
{
options.ConfigureDbContext = builder => builder.UseSqlServer(connectionString,
sqlServerOptionsAction: sqlOptions =>
{
sqlOptions.MigrationsAssembly(migrationsAssembly);
//Configuring Connection Resiliency: https://docs.microsoft.com/en-us/ef/core/miscellaneous/connection-resiliency
sqlOptions.EnableRetryOnFailure(maxRetryCount: 15, maxRetryDelay: TimeSpan.FromSeconds(30), errorNumbersToAdd: null);
});
})
{
options.ConfigureDbContext = builder => builder.UseSqlServer(connectionString,
sqlServerOptionsAction: sqlOptions =>
{
sqlOptions.MigrationsAssembly(migrationsAssembly);
//Configuring Connection Resiliency: https://docs.microsoft.com/en-us/ef/core/miscellaneous/connection-resiliency
sqlOptions.EnableRetryOnFailure(maxRetryCount: 15, maxRetryDelay: TimeSpan.FromSeconds(30), errorNumbersToAdd: null);
});
})
.Services.AddTransient<IProfileService, ProfileService>();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
services.AddControllers();
var container = new ContainerBuilder();
container.Populate(services);
@ -152,6 +156,8 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
endpoints.MapControllers();
endpoints.MapHealthChecks("/hc", new HealthCheckOptions()
{
Predicate = _ => true,
@ -161,7 +167,6 @@ namespace Microsoft.eShopOnContainers.Services.Identity.API
{
Predicate = r => r.Name.Contains("self")
});
endpoints.MapDefaultControllerRoute();
});
}


+ 1
- 0
src/Services/Location/Locations.API/Locations.API.csproj View File

@ -5,6 +5,7 @@
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<UserSecretsId>aspnet-Locations.API-20161122013619</UserSecretsId>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>
<ItemGroup>


+ 3
- 0
src/Services/Location/Locations.API/Startup.cs View File

@ -51,6 +51,8 @@ namespace Microsoft.eShopOnContainers.Services.Locations.API
.SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
.AddControllersAsServices();
services.AddControllers();
ConfigureAuthService(services);
services.Configure<LocationSettings>(Configuration);
@ -174,6 +176,7 @@ namespace Microsoft.eShopOnContainers.Services.Locations.API
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
endpoints.MapHealthChecks("/hc", new HealthCheckOptions()
{
Predicate = _ => true,


+ 1
- 0
src/Services/Marketing/Marketing.API/Marketing.API.csproj View File

@ -6,6 +6,7 @@
<RootNamespace>Microsoft.eShopOnContainers.Services.Marketing.API</RootNamespace>
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<UserSecretsId>aspnet-Marketing.API-20161122013619</UserSecretsId>
<AssemblyName />
<ApplicationInsightsResourceId>/subscriptions/6c22bb55-0221-4ce4-9bf1-3c4a10a7294c/resourcegroups/eshop-log/providers/microsoft.insights/components/eshopappinsights</ApplicationInsightsResourceId>


+ 2
- 1
src/Services/Marketing/Marketing.API/Startup.cs View File

@ -59,6 +59,7 @@
.SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
.AddControllersAsServices(); //Injecting Controllers themselves thru DIFor further info see: http://docs.autofac.org/en/latest/integration/aspnetcore.html#controllers-as-services
services.AddControllers();
services.Configure<MarketingSettings>(Configuration);
ConfigureAuthService(services);
@ -200,6 +201,7 @@
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
endpoints.MapHealthChecks("/hc", new HealthCheckOptions()
{
Predicate = _ => true,
@ -209,7 +211,6 @@
{
Predicate = r => r.Name.Contains("self")
});
endpoints.MapDefaultControllerRoute();
});
app.UseSwagger()


+ 1
- 0
src/Services/Ordering/Ordering.API/Ordering.API.csproj View File

@ -6,6 +6,7 @@
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>


+ 3
- 1
src/Services/Ordering/Ordering.API/Startup.cs View File

@ -56,6 +56,8 @@
.AddEventBus(Configuration)
.AddCustomAuthentication(Configuration);
services.AddControllers();
//configure autofac
var container = new ContainerBuilder();
@ -87,6 +89,7 @@
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
endpoints.MapHealthChecks("/hc", new HealthCheckOptions()
{
Predicate = _ => true,
@ -96,7 +99,6 @@
{
Predicate = r => r.Name.Contains("self")
});
endpoints.MapDefaultControllerRoute();
});
app.UseSwagger()


+ 1
- 0
src/Services/Ordering/Ordering.BackgroundTasks/Ordering.BackgroundTasks.csproj View File

@ -5,6 +5,7 @@
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>


+ 1
- 0
src/Services/Ordering/Ordering.SignalrHub/Ordering.SignalrHub.csproj View File

@ -4,6 +4,7 @@
<TargetFramework>$(NetCoreTargetVersion)</TargetFramework>
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>


+ 1
- 0
src/Services/Payment/Payment.API/Payment.API.csproj View File

@ -5,6 +5,7 @@
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>


+ 3
- 2
src/Services/Webhooks/Webhooks.API/Startup.cs View File

@ -62,6 +62,8 @@ namespace Webhooks.API
.AddTransient<IWebhooksRetriever, WebhooksRetriever>()
.AddTransient<IWebhooksSender, WebhooksSender>();
services.AddControllers();
var container = new ContainerBuilder();
container.Populate(services);
return new AutofacServiceProvider(container.Build());
@ -86,6 +88,7 @@ namespace Webhooks.API
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
endpoints.MapHealthChecks("/hc", new HealthCheckOptions()
{
Predicate = _ => true,
@ -95,8 +98,6 @@ namespace Webhooks.API
{
Predicate = r => r.Name.Contains("self")
});
endpoints.MapDefaultControllerRoute();
});
app.UseSwagger()


+ 1
- 0
src/Services/Webhooks/Webhooks.API/Webhooks.API.csproj View File

@ -6,6 +6,7 @@
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>


+ 2
- 0
src/Web/WebMVC/Startup.cs View File

@ -45,6 +45,8 @@ namespace Microsoft.eShopOnContainers.WebMVC
.AddHttpClientServices(Configuration)
//.AddHttpClientLogging(Configuration) //Opt-in HttpClientLogging config
.AddCustomAuthentication(Configuration);
services.AddControllers();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.


+ 3
- 2
src/Web/WebMVC/WebMVC.csproj View File

@ -6,6 +6,7 @@
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<TypeScriptToolsVersion>3.0</TypeScriptToolsVersion>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>
@ -45,13 +46,13 @@
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="$(Microsoft_AspNetCore_Authentication_OpenIdConnect)" />
</ItemGroup>
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">
<!--<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">
<Exec Command="dotnet bundle" Condition="'$(ASPNETCORE_ENVIRONMENT)'!='Development'" />
</Target>
<ItemGroup>
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="$(BundlerMinifier_Core)" />
</ItemGroup>
</ItemGroup>-->
<ItemGroup>
<None Include="ViewModels\CampaignItem.cs" />


+ 2
- 1
src/Web/WebSPA/Startup.cs View File

@ -48,6 +48,8 @@ namespace eShopConContainers.WebSPA
.AddUrlGroup(new Uri(Configuration["MarketingUrlHC"]), name: "marketingapigw-check", tags: new string[] { "marketingapigw" })
.AddUrlGroup(new Uri(Configuration["IdentityUrlHC"]), name: "identityapi-check", tags: new string[] { "identityapi" });
services.AddControllers();
services.Configure<AppSettings>(Configuration);
if (Configuration.GetValue<string>("IsClusterEnv") == bool.TrueString)
@ -125,7 +127,6 @@ namespace eShopConContainers.WebSPA
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapDefaultControllerRoute();
endpoints.MapHealthChecks("/liveness", new HealthCheckOptions
{
Predicate = r => r.Name.Contains("self")


+ 1
- 0
src/Web/WebSPA/WebSPA.csproj View File

@ -5,6 +5,7 @@
<UserSecretsId>aspnetcorespa-c23d27a4-eb88-4b18-9b77-2a93f3b15119</UserSecretsId>
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<TypeScriptCompileOnSaveEnabled>false</TypeScriptCompileOnSaveEnabled>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<GeneratedItemPatterns>wwwroot/dist/**</GeneratedItemPatterns>
<DefaultItemExcludes>$(DefaultItemExcludes);$(GeneratedItemPatterns)</DefaultItemExcludes>


+ 3
- 1
src/Web/WebStatus/Startup.cs View File

@ -23,6 +23,8 @@ namespace WebStatus
{
RegisterAppInsights(services);
services.AddControllers();
services.AddOptions();
services.AddHealthChecks()
.AddCheck("self", () => HealthCheckResult.Healthy());
@ -67,7 +69,7 @@ namespace WebStatus
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");
endpoints.MapDefaultControllerRoute();
endpoints.MapHealthChecks("/liveness", new HealthCheckOptions
{
Predicate = r => r.Name.Contains("self")


+ 1
- 0
src/Web/WebStatus/WebStatus.csproj View File

@ -3,6 +3,7 @@
<TargetFramework>$(NetCoreTargetVersion)</TargetFramework>
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>
<ItemGroup>


+ 5
- 3
src/Web/WebhookClient/Startup.cs View File

@ -26,8 +26,7 @@ namespace WebhookClient
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services
.AddSession(opt =>
services.AddSession(opt =>
{
opt.Cookie.Name = ".eShopWebhooks.Session";
})
@ -36,7 +35,10 @@ namespace WebhookClient
.AddCustomAuthentication(Configuration)
.AddTransient<IWebhooksClient, WebhooksClient>()
.AddSingleton<IHooksRepository, InMemoryHooksRepository>()
.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
.AddMvc()
.SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
services.AddControllers();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.


+ 1
- 0
src/Web/WebhookClient/WebhookClient.csproj View File

@ -7,6 +7,7 @@
<UserSecretsId>36215d41-f31a-4aa6-9929-bd67d650e7b5</UserSecretsId>
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
<LangVersion>$(LangVersion)</LangVersion>
</PropertyGroup>


+ 10
- 11
src/_build/dependencies.props View File

@ -48,29 +48,28 @@
<Microsoft_ApplicationInsights_Kubernetes>1.0.2</Microsoft_ApplicationInsights_Kubernetes>
<Microsoft_AspNetCore_Mvc_Core>3.0.0-preview4-19123-01</Microsoft_AspNetCore_Mvc_Core>
<Microsoft_AspNetCore_Razor_Design>3.0.0-alpha1-10670</Microsoft_AspNetCore_Razor_Design>
<Microsoft_AspNetCore_Authentication_OpenIdConnect>3.0.0-preview6-19253-01</Microsoft_AspNetCore_Authentication_OpenIdConnect>
<Microsoft_AspNetCore_DataProtection_Redis>2.2.0-preview2-35157</Microsoft_AspNetCore_DataProtection_Redis>
<Microsoft_AspNetCore_SignalR_Redis>3.0.0-alpha1-34847</Microsoft_AspNetCore_SignalR_Redis>
<Microsoft_AspNetCore_Authentication_JwtBearer>3.0.0-preview6.19307.2</Microsoft_AspNetCore_Authentication_JwtBearer>
<Microsoft_AspNetCore_Authentication_OpenIdConnect>3.0.0-preview6.19307.2</Microsoft_AspNetCore_Authentication_OpenIdConnect>
<Microsoft_AspNetCore_Authentication_JwtBearer>3.0.0-preview7.19365.7</Microsoft_AspNetCore_Authentication_JwtBearer>
<Microsoft_AspNetCore_Authentication_OpenIdConnect>3.0.0-preview7.19365.7</Microsoft_AspNetCore_Authentication_OpenIdConnect>
<Microsoft_AspNetCore_Diagnostics_HealthChecks>2.2.0</Microsoft_AspNetCore_Diagnostics_HealthChecks>
<Microsoft_AspNetCore_HealthChecks>1.0.0</Microsoft_AspNetCore_HealthChecks>
<Microsoft_AspNetCore_Http_Abstractions>2.2.0</Microsoft_AspNetCore_Http_Abstractions>
<Microsoft_AspNetCore_Mvc_Testing>3.0.0-preview6.19307.2</Microsoft_AspNetCore_Mvc_Testing>
<Microsoft_AspNetCore_TestHost>3.0.0-preview6.19307.2</Microsoft_AspNetCore_TestHost>
<Microsoft_AspNetCore_Identity_EntityFrameworkCore>3.0.0-preview6.19307.2</Microsoft_AspNetCore_Identity_EntityFrameworkCore>
<Microsoft_AspNetCore_Diagnostics_EntityFrameworkCore>3.0.0-preview6-19253-01</Microsoft_AspNetCore_Diagnostics_EntityFrameworkCore>
<Microsoft_AspNetCore_Identity_EntityFrameworkCore>3.0.0-preview7.19365.7</Microsoft_AspNetCore_Identity_EntityFrameworkCore>
<Microsoft_AspNetCore_Diagnostics_EntityFrameworkCore>3.0.0-preview7.19365.7</Microsoft_AspNetCore_Diagnostics_EntityFrameworkCore>
<Microsoft_AspNetCore_Hosting_Abstractions>3.0.0-preview4-19123-01</Microsoft_AspNetCore_Hosting_Abstractions>
<Microsoft_AspNetCore_Mvc_ViewFeatures>3.0.0-preview4-19123-01</Microsoft_AspNetCore_Mvc_ViewFeatures>
<FluentValidation_AspNetCore>7.5.0</FluentValidation_AspNetCore>
<Microsoft_Azure_ServiceBus>3.0.0</Microsoft_Azure_ServiceBus>
<Microsoft_CSharp>4.5.0</Microsoft_CSharp>
<System_Data_SqlClient>4.7.0-preview6.19303.8</System_Data_SqlClient>
<System_Data_SqlClient>4.7.0-preview7.19362.9</System_Data_SqlClient>
<Microsoft_NETCore_Platforms>3.0.0-preview6.19303.8</Microsoft_NETCore_Platforms>
<Microsoft_EntityFrameworkCore>3.0.0-preview6.19304.10</Microsoft_EntityFrameworkCore>
<Microsoft_EntityFrameworkCore_Design>3.0.0-preview6.19304.10</Microsoft_EntityFrameworkCore_Design>
<Microsoft_EntityFrameworkCore_Relational>3.0.0-preview6.19304.10</Microsoft_EntityFrameworkCore_Relational>
<Microsoft_EntityFrameworkCore_SqlServer>3.0.0-preview6.19304.10</Microsoft_EntityFrameworkCore_SqlServer>
<Microsoft_EntityFrameworkCore>3.0.0-preview7.19362.6</Microsoft_EntityFrameworkCore>
<Microsoft_EntityFrameworkCore_Design>3.0.0-preview7.19362.6</Microsoft_EntityFrameworkCore_Design>
<Microsoft_EntityFrameworkCore_Relational>3.0.0-preview7.19362.6</Microsoft_EntityFrameworkCore_Relational>
<Microsoft_EntityFrameworkCore_SqlServer>3.0.0-preview7.19362.6</Microsoft_EntityFrameworkCore_SqlServer>
<Microsoft_Extensions_Identity_Stores>3.0.0-preview7.19365.7</Microsoft_Extensions_Identity_Stores>
<Microsoft_Extensions_Configuration_AzureKeyVault>2.2.0</Microsoft_Extensions_Configuration_AzureKeyVault>
<Microsoft_Extensions_DependencyInjection_Abstractions>2.2.0</Microsoft_Extensions_DependencyInjection_Abstractions>
@ -78,7 +77,7 @@
<Microsoft_Extensions_Http>2.2.0</Microsoft_Extensions_Http>
<Microsoft_Extensions_Http_Polly>2.2.0</Microsoft_Extensions_Http_Polly>
<Microsoft_Extensions_Logging>2.2.0</Microsoft_Extensions_Logging>
<Microsoft_Extensions_Logging_AzureAppServices>3.0.0-preview6.19304.6</Microsoft_Extensions_Logging_AzureAppServices>
<Microsoft_Extensions_Logging_AzureAppServices>3.0.0-preview7.19362.4</Microsoft_Extensions_Logging_AzureAppServices>
<Microsoft_NET_Test_Sdk>16.0.1</Microsoft_NET_Test_Sdk>
<mongocsharpdriver>2.5.0</mongocsharpdriver>
<MongoDB_Bson>2.5.0</MongoDB_Bson>


Loading…
Cancel
Save