Revert "Revert "Update to ASP.NET Core 2.1.3""pull/714/head
@ -1,15 +1,16 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
</PropertyGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Folder Include="wwwroot\" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Folder Include="wwwroot\" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" /> | |||||
<PackageReference Include="Ocelot" Version="3.0.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="Ocelot" Version="3.0.0" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,20 +1,21 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<AssemblyName>Mobile.Shopping.HttpAggregator</AssemblyName> | |||||
<RootNamespace>Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator</RootNamespace> | |||||
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<AssemblyName>Mobile.Shopping.HttpAggregator</AssemblyName> | |||||
<RootNamespace>Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator</RootNamespace> | |||||
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Folder Include="wwwroot\" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Folder Include="wwwroot\" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="1.1.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="2.1.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="1.1.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="2.1.1" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,15 +1,23 @@ | |||||
{ | { | ||||
"Logging": { | |||||
"IncludeScopes": false, | |||||
"Debug": { | |||||
"LogLevel": { | |||||
"Default": "Warning" | |||||
} | |||||
}, | |||||
"Console": { | |||||
"LogLevel": { | |||||
"Default": "Warning" | |||||
} | |||||
} | |||||
} | |||||
"Logging": { | |||||
"IncludeScopes": false, | |||||
"Debug": { | |||||
"LogLevel": { | |||||
"Default": "Warning" | |||||
} | |||||
}, | |||||
"Console": { | |||||
"LogLevel": { | |||||
"Default": "Warning" | |||||
} | |||||
} | |||||
}, | |||||
"Kestrel": { | |||||
"Certificates": { | |||||
"Default": { | |||||
"Path": "./synergydev.pfx", | |||||
"Password": "RH@ssl2018" | |||||
} | |||||
} | |||||
} | |||||
} | } |
@ -1,21 +1,23 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<AssemblyName>Web.Shopping.HttpAggregator</AssemblyName> | |||||
<RootNamespace>Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator</RootNamespace> | |||||
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<AssemblyName>Web.Shopping.HttpAggregator</AssemblyName> | |||||
<RootNamespace>Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator</RootNamespace> | |||||
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
<UserSecretsId>0890cb23-79b5-408d-9aeb-13e6ff218d71</UserSecretsId> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Folder Include="wwwroot\" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Folder Include="wwwroot\" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUi" Version="2.4.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="2.1.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUi" Version="2.4.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="2.1.1" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,36 +1,37 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Content Update="web.config"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
</Content> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Content Update="web.config"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
</Content> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.6.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1-beta1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.0" /> | |||||
<PackageReference Include="StackExchange.Redis.StrongName" Version="1.2.4" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.4.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.7.2" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta9" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.1" /> | |||||
<PackageReference Include="StackExchange.Redis.StrongName" Version="1.2.4" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,24 +1,24 @@ | |||||
{ | { | ||||
"Logging": { | |||||
"IncludeScopes": false, | |||||
"LogLevel": { | |||||
"Default": "Debug", | |||||
"System": "Information", | |||||
"Microsoft": "Information" | |||||
} | |||||
}, | |||||
"IdentityUrl": "http://localhost:5105", | |||||
"ConnectionString": "127.0.0.1", | |||||
"AzureServiceBusEnabled": false, | |||||
"SubscriptionClientName": "Basket", | |||||
"ApplicationInsights": { | |||||
"InstrumentationKey": "" | |||||
}, | |||||
"EventBusRetryCount": 5, | |||||
"UseVault": false, | |||||
"Vault": { | |||||
"Name": "eshop", | |||||
"ClientId": "your-clien-id", | |||||
"ClientSecret": "your-client-secret" | |||||
} | |||||
"Logging": { | |||||
"IncludeScopes": false, | |||||
"LogLevel": { | |||||
"Default": "Debug", | |||||
"System": "Information", | |||||
"Microsoft": "Information" | |||||
} | |||||
}, | |||||
"IdentityUrl": "https://localhost:4105", | |||||
"ConnectionString": "127.0.0.1", | |||||
"AzureServiceBusEnabled": false, | |||||
"SubscriptionClientName": "Basket", | |||||
"ApplicationInsights": { | |||||
"InstrumentationKey": "" | |||||
}, | |||||
"EventBusRetryCount": 5, | |||||
"UseVault": false, | |||||
"Vault": { | |||||
"Name": "eshop", | |||||
"ClientId": "your-clien-id", | |||||
"ClientSecret": "your-client-secret" | |||||
} | |||||
} | } |
@ -1,60 +1,66 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<UserSecretsId>aspnet-eShopOnContainers.Identity-90487118-103c-4ff0-b9da-e5e26f7ab0c5</UserSecretsId> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Content Include="Setup\**\*;"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
</Content> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.6.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1-beta1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
<PackageReference Include="IdentityServer4.AspNetIdentity" Version="2.1.0" /> | |||||
<PackageReference Include="IdentityServer4.EntityFramework" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.DataProtection.Redis" Version="0.3.3" /> | |||||
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="1.0.113" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
</ItemGroup> | |||||
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish"> | |||||
<Exec Command="dotnet bundle" Condition="'$(ASPNETCORE_ENVIRONMENT)'!='Development'" /> | |||||
</Target> | |||||
<ItemGroup> | |||||
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.7.385" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<EmbeddedResource Include="Certificate\idsrv3test.pfx" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.SqlServer\Microsoft.Extensions.HealthChecks.SqlServer.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\WebHostCustomization\WebHost.Customization\WebHost.Customization.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<None Update="Setup\*"> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</None> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Folder Include="Extensions\" /> | |||||
</ItemGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<UserSecretsId>aspnet-eShopOnContainers.Identity-90487118-103c-4ff0-b9da-e5e26f7ab0c5</UserSecretsId> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Content Include="Setup\**\*;"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
</Content> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<None Remove="Setup\DotNet Foundation CA.pfx" /> | |||||
<None Remove="Setup\eShopOnContainers.pfx" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.4.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.7.2" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="IdentityServer4.AspNetIdentity" Version="2.1.0" /> | |||||
<PackageReference Include="IdentityServer4.EntityFramework" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.DataProtection.Redis" Version="0.3.3" /> | |||||
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="1.0.113" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
</ItemGroup> | |||||
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish"> | |||||
<Exec Command="dotnet bundle" Condition="'$(ASPNETCORE_ENVIRONMENT)'!='Development'" /> | |||||
</Target> | |||||
<ItemGroup> | |||||
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.7.385" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<EmbeddedResource Include="Certificate\idsrv3test.pfx" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.SqlServer\Microsoft.Extensions.HealthChecks.SqlServer.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\WebHostCustomization\WebHost.Customization\WebHost.Customization.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<None Update="Setup\*"> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</None> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Folder Include="Extensions\" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,25 +1,33 @@ | |||||
{ | { | ||||
"ConnectionString": "Server=tcp:127.0.0.1,5433;Database=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word;", | |||||
"IsClusterEnv": "False", | |||||
"MvcClient": "http://localhost:5100", | |||||
"SpaClient": "http://localhost:5104", | |||||
"XamarinCallback": "http://localhost:5105/xamarincallback", | |||||
"UseCustomizationData": false, | |||||
"Logging": { | |||||
"IncludeScopes": false, | |||||
"LogLevel": { | |||||
"Default": "Trace", | |||||
"System": "Information", | |||||
"Microsoft": "Information" | |||||
} | |||||
}, | |||||
"ApplicationInsights": { | |||||
"InstrumentationKey": "" | |||||
}, | |||||
"UseVault": false, | |||||
"Vault": { | |||||
"Name": "eshop", | |||||
"ClientId": "your-clien-id", | |||||
"ClientSecret": "your-client-secret" | |||||
} | |||||
"ConnectionString": "Server=tcp:127.0.0.1,5433;Database=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word;", | |||||
"IsClusterEnv": "False", | |||||
"MvcClient": "https://localhost:4100", | |||||
"SpaClient": "https://localhost:4104", | |||||
"XamarinCallback": "https://localhost:4105/xamarincallback", | |||||
"UseCustomizationData": false, | |||||
"Logging": { | |||||
"IncludeScopes": false, | |||||
"LogLevel": { | |||||
"Default": "Trace", | |||||
"System": "Information", | |||||
"Microsoft": "Information" | |||||
} | |||||
}, | |||||
"ApplicationInsights": { | |||||
"InstrumentationKey": "" | |||||
}, | |||||
"UseVault": false, | |||||
"Vault": { | |||||
"Name": "eshop", | |||||
"ClientId": "your-clien-id", | |||||
"ClientSecret": "your-client-secret" | |||||
}, | |||||
"Kestrel": { | |||||
"Certificates": { | |||||
"Default": { | |||||
"Path": "./Setup/eshopOnContainers.pfx", | |||||
"Password": "D0tNet@" | |||||
} | |||||
} | |||||
} | |||||
} | } |
@ -1,32 +1,33 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
<UserSecretsId>aspnet-Locations.API-20161122013619</UserSecretsId> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.6.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1-beta1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
<PackageReference Include="mongocsharpdriver" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Bson" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Driver" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Driver.Core" Version="2.5.0" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUi" Version="2.4.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
<UserSecretsId>aspnet-Locations.API-20161122013619</UserSecretsId> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.4.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.7.2" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta9" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="mongocsharpdriver" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Bson" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Driver" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Driver.Core" Version="2.5.0" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUi" Version="2.4.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,55 +1,56 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
<RootNamespace>Microsoft.eShopOnContainers.Services.Marketing.API</RootNamespace> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
<UserSecretsId>aspnet-Marketing.API-20161122013619</UserSecretsId> | |||||
<AssemblyName /> | |||||
<ApplicationInsightsResourceId>/subscriptions/6c22bb55-0221-4ce4-9bf1-3c4a10a7294c/resourcegroups/eshop-log/providers/microsoft.insights/components/eshopappinsights</ApplicationInsightsResourceId> | |||||
<ApplicationInsightsAnnotationResourceId>/subscriptions/6c22bb55-0221-4ce4-9bf1-3c4a10a7294c/resourcegroups/eshop-log/providers/microsoft.insights/components/eshopappinsights</ApplicationInsightsAnnotationResourceId> | |||||
</PropertyGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
<RootNamespace>Microsoft.eShopOnContainers.Services.Marketing.API</RootNamespace> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
<UserSecretsId>aspnet-Marketing.API-20161122013619</UserSecretsId> | |||||
<AssemblyName /> | |||||
<ApplicationInsightsResourceId>/subscriptions/6c22bb55-0221-4ce4-9bf1-3c4a10a7294c/resourcegroups/eshop-log/providers/microsoft.insights/components/eshopappinsights</ApplicationInsightsResourceId> | |||||
<ApplicationInsightsAnnotationResourceId>/subscriptions/6c22bb55-0221-4ce4-9bf1-3c4a10a7294c/resourcegroups/eshop-log/providers/microsoft.insights/components/eshopappinsights</ApplicationInsightsAnnotationResourceId> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Folder Include="Connected Services\" /> | |||||
<Folder Include="Infrastructure\MarketingMigrations\" /> | |||||
<Content Include="Pics\**\*;"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
</Content> | |||||
<Folder Include="Infrastructure\MarketingMigrations\" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.6.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1-beta1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
<PackageReference Include="mongocsharpdriver" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Bson" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Driver" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Driver.Core" Version="2.5.0" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.AzureStorage\Microsoft.Extensions.HealthChecks.AzureStorage.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\WebHostCustomization\WebHost.Customization\WebHost.Customization.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Folder Include="Connected Services\" /> | |||||
<Folder Include="Infrastructure\MarketingMigrations\" /> | |||||
<Content Include="Pics\**\*;"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
</Content> | |||||
<Folder Include="Infrastructure\MarketingMigrations\" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.4.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.7.2" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta9" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="mongocsharpdriver" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Bson" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Driver" Version="2.5.0" /> | |||||
<PackageReference Include="MongoDB.Driver.Core" Version="2.5.0" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.AzureStorage\Microsoft.Extensions.HealthChecks.AzureStorage.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\WebHostCustomization\WebHost.Customization\WebHost.Customization.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<None Update="Pics\*"> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</None> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<None Update="Pics\*"> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</None> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<WCFMetadata Include="Connected Services" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<WCFMetadata Include="Connected Services" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,56 +1,57 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<UserSecretsId>aspnet-Ordering.API-20161122013547</UserSecretsId> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<UserSecretsId>aspnet-Ordering.API-20161122013547</UserSecretsId> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Content Update="web.config;"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
</Content> | |||||
<Content Include="Setup\**\*;"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
</Content> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Content Update="web.config;"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
</Content> | |||||
<Content Include="Setup\**\*;"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
</Content> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\IntegrationEventLogEF\IntegrationEventLogEF.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.SqlServer\Microsoft.Extensions.HealthChecks.SqlServer.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\WebHostCustomization\WebHost.Customization\WebHost.Customization.csproj" /> | |||||
<ProjectReference Include="..\Ordering.Domain\Ordering.Domain.csproj" /> | |||||
<ProjectReference Include="..\Ordering.Infrastructure\Ordering.Infrastructure.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\IntegrationEventLogEF\IntegrationEventLogEF.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.SqlServer\Microsoft.Extensions.HealthChecks.SqlServer.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\WebHostCustomization\WebHost.Customization\WebHost.Customization.csproj" /> | |||||
<ProjectReference Include="..\Ordering.Domain\Ordering.Domain.csproj" /> | |||||
<ProjectReference Include="..\Ordering.Infrastructure\Ordering.Infrastructure.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="FluentValidation.AspNetCore" Version="7.5.0" /> | |||||
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="4.1.0" /> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.6.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1-beta1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
<PackageReference Include="MediatR" Version="4.1.0" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
<PackageReference Include="System.Reflection" Version="4.3.0" /> | |||||
<PackageReference Include="Dapper" Version="1.50.4" /> | |||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" /> | |||||
<PackageReference Include="Polly" Version="6.0.1" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<None Update="Setup\*"> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</None> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Dapper" Version="1.50.4" /> | |||||
<PackageReference Include="FluentValidation.AspNetCore" Version="7.5.0" /> | |||||
<PackageReference Include="MediatR" Version="4.1.0" /> | |||||
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="4.1.0" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.4.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.7.2" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta9" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.1" /> | |||||
<PackageReference Include="Polly" Version="6.0.1" /> | |||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.4.0" /> | |||||
<PackageReference Include="System.Reflection" Version="4.3.0" /> | |||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<None Update="Setup\*"> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</None> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,31 +1,32 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Compile Remove="wwwroot\**" /> | |||||
<Content Remove="wwwroot\**" /> | |||||
<EmbeddedResource Remove="wwwroot\**" /> | |||||
<None Remove="wwwroot\**" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Compile Remove="wwwroot\**" /> | |||||
<Content Remove="wwwroot\**" /> | |||||
<EmbeddedResource Remove="wwwroot\**" /> | |||||
<None Remove="wwwroot\**" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Dapper" Version="1.50.4" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Dapper" Version="1.50.4" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.SqlServer\Microsoft.Extensions.HealthChecks.SqlServer.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.SqlServer\Microsoft.Extensions.HealthChecks.SqlServer.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,31 +1,32 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Folder Include="wwwroot\" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Folder Include="wwwroot\" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.0.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Core" Version="1.0.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Redis" Version="1.0.0" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.6.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1-beta1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.0.3" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Core" Version="1.0.3" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Redis" Version="1.0.3" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.4.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.7.2" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta9" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.1" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,28 +1,29 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
</PropertyGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<DockerComposeProjectPath>..\..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.6.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1-beta1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\IntegrationEventLogEF\IntegrationEventLogEF.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.SqlServer\Microsoft.Extensions.HealthChecks.SqlServer.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.4.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.7.2" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta9" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusRabbitMQ\EventBusRabbitMQ.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBusServiceBus\EventBusServiceBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\EventBus\EventBus.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\EventBus\IntegrationEventLogEF\IntegrationEventLogEF.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks.SqlServer\Microsoft.Extensions.HealthChecks.SqlServer.csproj" /> | |||||
<ProjectReference Include="..\..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -0,0 +1,13 @@ | |||||
using Microsoft.AspNetCore.Mvc; | |||||
namespace WebMVC.Controllers | |||||
{ | |||||
public class HomeController : Controller | |||||
{ | |||||
public IActionResult Privacy() | |||||
{ | |||||
return View(); | |||||
} | |||||
} | |||||
} |
@ -1,28 +1,30 @@ | |||||
@{ | @{ | ||||
ViewData["Title"] = "Campaign details"; | |||||
@model CampaignItem | |||||
ViewData["Title"] = "Campaign details"; | |||||
var headers = new List<Header>{ | |||||
new Header { Controller = "Campaigns", Text = "Back to Campaigns" }, | |||||
new Header { Controller = "Catalog", Text = "Back to catalog" } | |||||
}; | |||||
@model CampaignItem | |||||
} | } | ||||
<section class="esh-campaigns-hero"> | <section class="esh-campaigns-hero"> | ||||
<div class="container"> | |||||
<img class="esh-campaigns-title" src="~/images/main_banner_text.png" /> | |||||
</div> | |||||
<div class="container"> | |||||
<img class="esh-campaigns-title" src="~/images/main_banner_text.png" /> | |||||
</div> | |||||
</section> | </section> | ||||
@Html.Partial("_Header", new List<Header>() { | |||||
new Header() { Controller = "Catalog", Text = "Back to catalog" }, | |||||
new Header() { Controller = "Campaigns", Text = "Back to Campaigns" } }) | |||||
<partial name="_Header" model="headers" /> | |||||
<div class="container"> | <div class="container"> | ||||
<div class="card esh-campaigns-items"> | |||||
<img class="card-img-top" src="@Model.PictureUri" alt="Card image cap"> | |||||
<div class="card-block"> | |||||
<h4 class="card-title">@Model.Name</h4> | |||||
<p class="card-text">@Model.Description</p> | |||||
<p class="card-text"> | |||||
<small class="text-muted"> | |||||
From @Model.From.ToString("MMMM dd, yyyy") until @Model.To.ToString("MMMM dd, yyyy") | |||||
</small> | |||||
</p> | |||||
</div> | |||||
</div> | |||||
<div class="card esh-campaigns-items"> | |||||
<img class="card-img-top" src="@Model.PictureUri" alt="Card image cap"> | |||||
<div class="card-block"> | |||||
<h4 class="card-title">@Model.Name</h4> | |||||
<p class="card-text">@Model.Description</p> | |||||
<p class="card-text"> | |||||
<small class="text-muted"> | |||||
From @Model.From.ToString("MMMM dd, yyyy") until @Model.To.ToString("MMMM dd, yyyy") | |||||
</small> | |||||
</p> | |||||
</div> | |||||
</div> | |||||
</div> | </div> |
@ -1,72 +1,75 @@ | |||||
@{ | @{ | ||||
ViewData["Title"] = "Campaigns"; | |||||
@model WebMVC.ViewModels.CampaignViewModel | |||||
ViewData["Title"] = "Campaigns"; | |||||
@model WebMVC.ViewModels.CampaignViewModel | |||||
var headers = new List<Header>() { | |||||
new Header() { Controller = "Catalog", Text = "Back to catalog" } }; | |||||
} | } | ||||
<section class="esh-campaigns-hero"> | <section class="esh-campaigns-hero"> | ||||
<div class="container"> | |||||
<img class="esh-campaigns-title" src="~/images/main_banner_text.png" /> | |||||
</div> | |||||
<div class="container"> | |||||
<img class="esh-campaigns-title" src="~/images/main_banner_text.png" /> | |||||
</div> | |||||
</section> | </section> | ||||
@Html.Partial("_Header", new List<Header>() { | |||||
new Header() { Controller = "Catalog", Text = "Back to catalog" } }) | |||||
<partial name="_Header" model="headers" /> | |||||
<div class="container"> | <div class="container"> | ||||
<br /> | |||||
<div class="row"> | |||||
@if (!ViewData.ModelState.IsValid) | |||||
{ | |||||
<div class="alert alert-warning"> | |||||
@Html.ValidationSummary(false) | |||||
</div> | |||||
} | |||||
<br /> | |||||
<div class="row"> | |||||
<div class="col-md-12"> | |||||
<div class="esh-campaigns-items" style="font-weight: 300;"> | |||||
UPDATE USER LOCATION | |||||
</div> | |||||
@if (!ViewData.ModelState.IsValid) | |||||
{ | |||||
<div class="alert alert-warning"> | |||||
@Html.ValidationSummary(false) | |||||
</div> | |||||
} | |||||
<form class="form-inline" asp-action="CreateNewUserLocation" method="post"> | |||||
<label class="sr-only" for="longitudeInput">Name</label> | |||||
<div class="input-group mb-2 mr-sm-2 mb-sm-0"> | |||||
<div class="input-group-addon">Lat</div> | |||||
<input type="text" class="form-control mb-2 mr-sm-2 mb-sm-0" id="latitudeInput" asp-for="Lat" placeholder="Latitude"> | |||||
</div> | |||||
<div class="col-md-12"> | |||||
<div class="esh-campaigns-items" style="font-weight: 300;"> | |||||
UPDATE USER LOCATION | |||||
</div> | |||||
<div class="input-group mb-2 mr-sm-2 mb-sm-0"> | |||||
<div class="input-group-addon">Lon</div> | |||||
<input type="text" class="form-control mb-2 mr-sm-2 mb-sm-0" id="longitudeInput" asp-for="Lon" placeholder="Longitude"> | |||||
</div> | |||||
<div class="input-group mb-2 mr-sm-2 mb-sm-0 col-md-2"> | |||||
<input type="submit" value="Update" class="btn esh-campaigns-form-button" /> | |||||
</div> | |||||
</form> | |||||
</div> | |||||
</div> | |||||
<br /> | |||||
@if (Model != null && Model.CampaignItems !=null && Model.CampaignItems.Any()) | |||||
{ | |||||
<div class="card-group esh-campaigns-items row"> | |||||
@foreach (var catalogItem in Model.CampaignItems) | |||||
{ | |||||
<div class="esh-campaigns-item col-md-4"> | |||||
@Html.Partial("_campaign", catalogItem) | |||||
</div> | |||||
} | |||||
</div> | |||||
<form class="form-inline" asp-action="CreateNewUserLocation" method="post"> | |||||
<label class="sr-only" for="longitudeInput">Name</label> | |||||
@Html.Partial("_pagination", Model.PaginationInfo) | |||||
} | |||||
else | |||||
{ | |||||
<div class="esh-campaigns-items row"> | |||||
THERE ARE NO CAMPAIGNS | |||||
</div> | |||||
} | |||||
<div class="input-group mb-2 mr-sm-2 mb-sm-0"> | |||||
<div class="input-group-addon">Lat</div> | |||||
<input type="text" class="form-control mb-2 mr-sm-2 mb-sm-0" id="latitudeInput" asp-for="Lat" placeholder="Latitude"> | |||||
</div> | |||||
<div class="input-group mb-2 mr-sm-2 mb-sm-0"> | |||||
<div class="input-group-addon">Lon</div> | |||||
<input type="text" class="form-control mb-2 mr-sm-2 mb-sm-0" id="longitudeInput" asp-for="Lon" placeholder="Longitude"> | |||||
</div> | |||||
<div class="input-group mb-2 mr-sm-2 mb-sm-0 col-md-2"> | |||||
<input type="submit" value="Update" class="btn esh-campaigns-form-button" /> | |||||
</div> | |||||
</form> | |||||
</div> | |||||
</div> | |||||
<br /> | |||||
@if (Model != null && Model.CampaignItems != null && Model.CampaignItems.Any()) | |||||
{ | |||||
<div class="card-group esh-campaigns-items row"> | |||||
@foreach (var catalogItem in Model.CampaignItems) | |||||
{ | |||||
<div class="esh-campaigns-item col-md-4"> | |||||
@*@Html.Partial("_campaign", catalogItem)*@ | |||||
<partial name="_campaign" model="catalogItem" /> | |||||
</div> | |||||
} | |||||
</div> | |||||
@*@Html.Partial("_pagination", Model.PaginationInfo)*@ | |||||
<partial name="_pagination" model="Model.PaginationInfo" /> | |||||
} | |||||
else | |||||
{ | |||||
<div class="esh-campaigns-items row"> | |||||
THERE ARE NO CAMPAIGNS | |||||
</div> | |||||
} | |||||
</div> | </div> | ||||
@ -1,57 +1,57 @@ | |||||
@{ | @{ | ||||
ViewData["Title"] = "Catalog"; | |||||
@model Microsoft.eShopOnContainers.WebMVC.ViewModels.CatalogViewModels.IndexViewModel | |||||
ViewData["Title"] = "Catalog"; | |||||
@model Microsoft.eShopOnContainers.WebMVC.ViewModels.CatalogViewModels.IndexViewModel | |||||
} | } | ||||
<section class="esh-catalog-hero"> | <section class="esh-catalog-hero"> | ||||
<div class="container"> | |||||
<img class="esh-catalog-title" src="~/images/main_banner_text.png" /> | |||||
</div> | |||||
<div class="container"> | |||||
<img class="esh-catalog-title" src="~/images/main_banner_text.png" /> | |||||
</div> | |||||
</section> | </section> | ||||
<section class="esh-catalog-filters"> | <section class="esh-catalog-filters"> | ||||
<div class="container"> | |||||
<form asp-action="Index" asp-controller="Catalog" method="post"> | |||||
<label class="esh-catalog-label" data-title="brand"> | |||||
<select asp-for="@Model.BrandFilterApplied" asp-items="@Model.Brands" class="esh-catalog-filter"></select> | |||||
</label> | |||||
<label class="esh-catalog-label" data-title="type"> | |||||
<select asp-for="@Model.TypesFilterApplied" asp-items="@Model.Types" class="esh-catalog-filter"></select> | |||||
</label> | |||||
<input class="esh-catalog-send" type="image" src="~/images/arrow-right.svg" /> | |||||
</form> | |||||
</div> | |||||
<div class="container"> | |||||
<form asp-action="Index" asp-controller="Catalog" method="post"> | |||||
<label class="esh-catalog-label" data-title="brand"> | |||||
<select asp-for="@Model.BrandFilterApplied" asp-items="@Model.Brands" class="esh-catalog-filter"></select> | |||||
</label> | |||||
<label class="esh-catalog-label" data-title="type"> | |||||
<select asp-for="@Model.TypesFilterApplied" asp-items="@Model.Types" class="esh-catalog-filter"></select> | |||||
</label> | |||||
<input class="esh-catalog-send" type="image" src="~/images/arrow-right.svg" /> | |||||
</form> | |||||
</div> | |||||
</section> | </section> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="row"> | |||||
<br /> | |||||
@if(ViewBag.BasketInoperativeMsg != null) | |||||
{ | |||||
<div class="alert alert-warning" role="alert"> | |||||
@ViewBag.BasketInoperativeMsg | |||||
</div> | |||||
} | |||||
</div> | |||||
<div class="row"> | |||||
<br /> | |||||
@if (ViewBag.BasketInoperativeMsg != null) | |||||
{ | |||||
<div class="alert alert-warning" role="alert"> | |||||
@ViewBag.BasketInoperativeMsg | |||||
</div> | |||||
} | |||||
</div> | |||||
@if (Model.CatalogItems.Count() > 0) | |||||
{ | |||||
@Html.Partial("_pagination", Model.PaginationInfo) | |||||
@if (Model.CatalogItems.Count() > 0) | |||||
{ | |||||
<partial name="_pagination" model="Model.PaginationInfo" /> | |||||
<div class="esh-catalog-items row"> | |||||
@foreach (var catalogItem in Model.CatalogItems) | |||||
{ | |||||
<div class="esh-catalog-item col-md-4"> | |||||
@Html.Partial("_product", catalogItem) | |||||
</div> | |||||
} | |||||
</div> | |||||
<div class="esh-catalog-items row"> | |||||
@foreach (var catalogItem in Model.CatalogItems) | |||||
{ | |||||
<div class="esh-catalog-item col-md-4"> | |||||
<partial name="_product" , model="catalogItem" /> | |||||
</div> | |||||
} | |||||
</div> | |||||
@Html.Partial("_pagination", Model.PaginationInfo) | |||||
} | |||||
else | |||||
{ | |||||
<div class="esh-catalog-items row"> | |||||
THERE ARE NO RESULTS THAT MATCH YOUR SEARCH | |||||
</div> | |||||
} | |||||
<partial name="_pagination" model="Model.PaginationInfo" /> | |||||
} | |||||
else | |||||
{ | |||||
<div class="esh-catalog-items row"> | |||||
THERE ARE NO RESULTS THAT MATCH YOUR SEARCH | |||||
</div> | |||||
} | |||||
</div> | </div> |
@ -0,0 +1,6 @@ | |||||
@{ | |||||
ViewData["Title"] = "Privacy Policy"; | |||||
} | |||||
<h2>@ViewData["Title"]</h2> | |||||
<p>Use this page to detail your site's privacy policy.</p> |
@ -0,0 +1,41 @@ | |||||
@using Microsoft.AspNetCore.Http.Features | |||||
@{ | |||||
var consentFeature = Context.Features.Get<ITrackingConsentFeature>(); | |||||
var showBanner = !consentFeature?.CanTrack ?? false; | |||||
var cookieString = consentFeature?.CreateConsentCookie(); | |||||
} | |||||
@if (showBanner) | |||||
{ | |||||
<nav id="cookieConsent" class="navbar navbar-default navbar-fixed-top" role="alert"> | |||||
<div class="container"> | |||||
<div class="navbar-header"> | |||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#cookieConsent .navbar-collapse"> | |||||
<span class="sr-only">Toggle cookie consent banner</span> | |||||
<span class="icon-bar"></span> | |||||
<span class="icon-bar"></span> | |||||
<span class="icon-bar"></span> | |||||
</button> | |||||
<span class="navbar-brand"><span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span></span> | |||||
</div> | |||||
<div class="collapse navbar-collapse"> | |||||
<p class="navbar-text"> | |||||
Use this space to summarize your privacy and cookie use policy. | |||||
</p> | |||||
<div class="navbar-right"> | |||||
<a asp-controller="Home" asp-action="Privacy" class="btn btn-info navbar-btn">Learn More</a> | |||||
<button type="button" class="btn btn-default navbar-btn" data-cookie-string="@cookieString">Accept</button> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</nav> | |||||
<script> | |||||
(function () { | |||||
document.querySelector("#cookieConsent button[data-cookie-string]").addEventListener("click", function (el) { | |||||
document.cookie = el.target.dataset.cookieString; | |||||
document.querySelector("#cookieConsent").classList.add("hidden"); | |||||
}, false); | |||||
})(); | |||||
</script> | |||||
} |
@ -1,52 +1,50 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<UserSecretsId>aspnet-Microsoft.eShopOnContainers-946ae052-8305-4a99-965b-ec8636ddbae3</UserSecretsId> | |||||
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Content Include="Setup\images.zip"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</Content> | |||||
<Content Include="Setup\override.css"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</Content> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="BuildBundlerMinifier" Version="2.6.375" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.6.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1-beta1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.DataProtection.Redis" Version="0.3.3" /> | |||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Fabric.MSBuild" Version="1.6.5" /> | |||||
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="1.0.113" /> | |||||
</ItemGroup> | |||||
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish"> | |||||
<Exec Command="dotnet bundle" Condition="'$(ASPNETCORE_ENVIRONMENT)'!='Development'" /> | |||||
</Target> | |||||
<ItemGroup> | |||||
<DotNetCliToolReference Include="BundlerMinifier.Core" Version="2.7.385" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<None Include="ViewModels\CampaignItem.cs" /> | |||||
</ItemGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<UserSecretsId>aspnet-Microsoft.eShopOnContainers-946ae052-8305-4a99-965b-ec8636ddbae3</UserSecretsId> | |||||
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Content Include="Setup\images.zip"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</Content> | |||||
<Content Include="Setup\override.css"> | |||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</Content> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="BuildBundlerMinifier" Version="2.8.391" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.4.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.7.2" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta9" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.DataProtection.Redis" Version="0.4.1" /> | |||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Fabric.MSBuild" Version="1.6.7" /> | |||||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.3" /> | |||||
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="1.0.163" /> | |||||
</ItemGroup> | |||||
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish"> | |||||
<Exec Command="dotnet bundle" Condition="'$(ASPNETCORE_ENVIRONMENT)'!='Development'" /> | |||||
</Target> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<None Include="ViewModels\CampaignItem.cs" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |
@ -1,27 +1,36 @@ | |||||
{ | { | ||||
"CatalogUrl": "http://localhost:5101", | |||||
"OrderingUrl": "http://localhost:5102", | |||||
"BasketUrl": "http://localhost:5103", | |||||
"MarketingUrl": "http://localhost:5110", | |||||
"IdentityUrl": "http://localhost:5105", | |||||
"CallBackUrl": "http://localhost:5100/", | |||||
"LocationsUrl": "http://localhost:5109/", | |||||
"IsClusterEnv": "False", | |||||
"UseResilientHttp": "True", | |||||
"UseLoadTest": false, | |||||
"ActivateCampaignDetailFunction": "False", | |||||
"UseCustomizationData": false, | |||||
"Logging": { | |||||
"IncludeScopes": false, | |||||
"LogLevel": { | |||||
"Default": "Trace", | |||||
"System": "Information", | |||||
"Microsoft": "Information" | |||||
} | |||||
}, | |||||
"ApplicationInsights": { | |||||
"InstrumentationKey": "" | |||||
}, | |||||
"HttpClientRetryCount": 8, | |||||
"HttpClientExceptionsAllowedBeforeBreaking": 7 | |||||
"AllowedHosts": "*", | |||||
"CatalogUrl": "http://localhost:5101", | |||||
"OrderingUrl": "http://localhost:5102", | |||||
"BasketUrl": "http://localhost:5103", | |||||
"MarketingUrl": "http://localhost:5110", | |||||
"IdentityUrl": "https://localhost:4105", | |||||
"CallBackUrl": "https://localhost:4100/", | |||||
"LocationsUrl": "http://localhost:5109/", | |||||
"IsClusterEnv": "False", | |||||
"UseResilientHttp": "True", | |||||
"UseLoadTest": false, | |||||
"ActivateCampaignDetailFunction": "False", | |||||
"UseCustomizationData": false, | |||||
"Logging": { | |||||
"IncludeScopes": false, | |||||
"LogLevel": { | |||||
"Default": "Trace", | |||||
"System": "Information", | |||||
"Microsoft": "Information" | |||||
} | |||||
}, | |||||
"ApplicationInsights": { | |||||
"InstrumentationKey": "" | |||||
}, | |||||
"HttpClientRetryCount": 8, | |||||
"HttpClientExceptionsAllowedBeforeBreaking": 7, | |||||
"Kestrel": { | |||||
"Certificates": { | |||||
"Default": { | |||||
"Path": "./synergydev.pfx", | |||||
"Password": "RH@ssl2018" | |||||
} | |||||
} | |||||
} | |||||
} | } |
@ -1,18 +1,19 @@ | |||||
{ | { | ||||
"iisSettings": { | |||||
"windowsAuthentication": false, | |||||
"anonymousAuthentication": true, | |||||
"iisExpress": { | |||||
"applicationUrl": "http://localhost:58018/", | |||||
"sslPort": 0 | |||||
} | |||||
}, | |||||
"profiles": { | |||||
"IIS Express": { | |||||
"commandName": "IISExpress", | |||||
"environmentVariables": { | |||||
"ASPNETCORE_ENVIRONMENT": "Production" | |||||
} | |||||
} | |||||
} | |||||
"iisSettings": { | |||||
"windowsAuthentication": false, | |||||
"anonymousAuthentication": true, | |||||
"iisExpress": { | |||||
"applicationUrl": "http://localhost:58018/", | |||||
"sslPort": 4104 | |||||
} | |||||
}, | |||||
"profiles": { | |||||
"IIS Express": { | |||||
"commandName": "IISExpress", | |||||
"environmentVariables": { | |||||
"ASPNETCORE_ENVIRONMENT": "Production" | |||||
}, | |||||
"use64Bit": true | |||||
} | |||||
} | |||||
} | } |
@ -1,20 +1,28 @@ | |||||
{ | { | ||||
"IdentityUrl": "http://localhost:5105", | |||||
"MarketingUrl": "http://localhost:5110", | |||||
"CallBackUrl": "http://localhost:5104/", | |||||
"PurchaseUrl": "http://localhost:5200", | |||||
"UseCustomizationData": true, | |||||
"IsClusterEnv": "False", | |||||
"ActivateCampaignDetailFunction": true, | |||||
"Logging": { | |||||
"IncludeScopes": false, | |||||
"LogLevel": { | |||||
"Default": "Debug", | |||||
"System": "Information", | |||||
"Microsoft": "Information" | |||||
} | |||||
}, | |||||
"ApplicationInsights": { | |||||
"InstrumentationKey": "" | |||||
} | |||||
"IdentityUrl": "https://localhost:4105", | |||||
"MarketingUrl": "http://localhost:5110", | |||||
"CallBackUrl": "https://localhost:4104/", | |||||
"PurchaseUrl": "http://localhost:5200", | |||||
"UseCustomizationData": true, | |||||
"IsClusterEnv": "False", | |||||
"ActivateCampaignDetailFunction": true, | |||||
"Logging": { | |||||
"IncludeScopes": false, | |||||
"LogLevel": { | |||||
"Default": "Debug", | |||||
"System": "Information", | |||||
"Microsoft": "Information" | |||||
} | |||||
}, | |||||
"ApplicationInsights": { | |||||
"InstrumentationKey": "" | |||||
}, | |||||
"Kestrel": { | |||||
"Certificates": { | |||||
"Default": { | |||||
"Path": "./Setup/eShopOnContainers.pfx", | |||||
"Password": "D0tNet@" | |||||
} | |||||
} | |||||
} | |||||
} | } |
@ -1,110 +1,111 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Linq; | |||||
using System.Threading.Tasks; | |||||
using Microsoft.ApplicationInsights.Extensibility; | |||||
using Microsoft.ApplicationInsights.ServiceFabric; | |||||
using Microsoft.AspNetCore.Builder; | using Microsoft.AspNetCore.Builder; | ||||
using Microsoft.AspNetCore.Hosting; | using Microsoft.AspNetCore.Hosting; | ||||
using Microsoft.Extensions.Configuration; | using Microsoft.Extensions.Configuration; | ||||
using Microsoft.Extensions.DependencyInjection; | using Microsoft.Extensions.DependencyInjection; | ||||
using Microsoft.Extensions.Logging; | using Microsoft.Extensions.Logging; | ||||
using WebStatus.Extensions; | using WebStatus.Extensions; | ||||
using Microsoft.ApplicationInsights.Extensibility; | |||||
using Microsoft.ApplicationInsights.ServiceFabric; | |||||
using TimeSpan = System.TimeSpan; | |||||
namespace WebStatus | namespace WebStatus | ||||
{ | { | ||||
public class Startup | |||||
{ | |||||
public Startup(IConfiguration configuration) | |||||
{ | |||||
Configuration = configuration; | |||||
} | |||||
public IConfiguration Configuration { get; } | |||||
// This method gets called by the runtime. Use this method to add services to the container. | |||||
public void ConfigureServices(IServiceCollection services) | |||||
{ | |||||
RegisterAppInsights(services); | |||||
services.AddOptions(); | |||||
// Add framework services. | |||||
services.AddHealthChecks(checks => | |||||
{ | |||||
var minutes = 1; | |||||
if (int.TryParse(Configuration["HealthCheck:Timeout"], out var minutesParsed)) | |||||
{ | |||||
minutes = minutesParsed; | |||||
} | |||||
checks.AddUrlCheckIfNotNull(Configuration["OrderingUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["OrderingBackgroundTasksUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["BasketUrl"], TimeSpan.Zero); //No cache for this HealthCheck, better just for demos | |||||
checks.AddUrlCheckIfNotNull(Configuration["CatalogUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["IdentityUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["LocationsUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["MarketingUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["PaymentUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["mvc"], TimeSpan.Zero); //No cache for this HealthCheck, better just for demos | |||||
checks.AddUrlCheckIfNotNull(Configuration["spa"], TimeSpan.Zero); //No cache for this HealthCheck, better just for demos | |||||
}); | |||||
services.AddMvc(); | |||||
} | |||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. | |||||
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) | |||||
{ | |||||
loggerFactory.AddAzureWebAppDiagnostics(); | |||||
loggerFactory.AddApplicationInsights(app.ApplicationServices, LogLevel.Trace); | |||||
if (env.IsDevelopment()) | |||||
{ | |||||
app.UseDeveloperExceptionPage(); | |||||
} | |||||
else | |||||
{ | |||||
app.UseExceptionHandler("/Home/Error"); | |||||
} | |||||
var pathBase = Configuration["PATH_BASE"]; | |||||
if (!string.IsNullOrEmpty(pathBase)) | |||||
{ | |||||
app.UsePathBase(pathBase); | |||||
} | |||||
public class Startup | |||||
{ | |||||
public Startup(IConfiguration configuration) | |||||
{ | |||||
Configuration = configuration; | |||||
} | |||||
public IConfiguration Configuration { get; } | |||||
// This method gets called by the runtime. Use this method to add services to the container. | |||||
public void ConfigureServices(IServiceCollection services) | |||||
{ | |||||
RegisterAppInsights(services); | |||||
services.AddOptions(); | |||||
// Add framework services. | |||||
services.AddHealthChecks(checks => | |||||
{ | |||||
var minutes = 1; | |||||
if (int.TryParse(Configuration["HealthCheck:Timeout"], out int minutesParsed)) | |||||
{ | |||||
minutes = minutesParsed; | |||||
} | |||||
checks.AddUrlCheckIfNotNull(Configuration["OrderingUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["OrderingBackgroundTasksUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["BasketUrl"], TimeSpan.Zero); //No cache for this HealthCheck, better just for demos | |||||
checks.AddUrlCheckIfNotNull(Configuration["CatalogUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["IdentityUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["LocationsUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["MarketingUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["PaymentUrl"], TimeSpan.FromMinutes(minutes)); | |||||
checks.AddUrlCheckIfNotNull(Configuration["mvc"], TimeSpan.Zero); //No cache for this HealthCheck, better just for demos | |||||
checks.AddUrlCheckIfNotNull(Configuration["spa"], TimeSpan.Zero); //No cache for this HealthCheck, better just for demos | |||||
}); | |||||
services | |||||
.AddMvc() | |||||
.SetCompatibilityVersion(Microsoft.AspNetCore.Mvc.CompatibilityVersion.Version_2_1) | |||||
; | |||||
} | |||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. | |||||
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) | |||||
{ | |||||
loggerFactory.AddAzureWebAppDiagnostics(); | |||||
loggerFactory.AddApplicationInsights(app.ApplicationServices, LogLevel.Trace); | |||||
if (env.IsDevelopment()) | |||||
{ | |||||
app.UseDeveloperExceptionPage(); | |||||
} | |||||
else | |||||
{ | |||||
app.UseExceptionHandler("/Home/Error"); | |||||
} | |||||
var pathBase = Configuration["PATH_BASE"]; | |||||
if (!string.IsNullOrEmpty(pathBase)) | |||||
{ | |||||
app.UsePathBase(pathBase); | |||||
} | |||||
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously | #pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously | ||||
app.Map("/liveness", lapp => lapp.Run(async ctx => ctx.Response.StatusCode = 200)); | |||||
app.Map("/liveness", lapp => lapp.Run(async ctx => ctx.Response.StatusCode = 200)); | |||||
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously | #pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously | ||||
app.UseStaticFiles(); | |||||
app.UseMvc(routes => | |||||
{ | |||||
routes.MapRoute( | |||||
name: "default", | |||||
template: "{controller=Home}/{action=Index}/{id?}"); | |||||
}); | |||||
} | |||||
private void RegisterAppInsights(IServiceCollection services) | |||||
{ | |||||
services.AddApplicationInsightsTelemetry(Configuration); | |||||
var orchestratorType = Configuration.GetValue<string>("OrchestratorType"); | |||||
if (orchestratorType?.ToUpper() == "K8S") | |||||
{ | |||||
// Enable K8s telemetry initializer | |||||
services.EnableKubernetes(); | |||||
} | |||||
if (orchestratorType?.ToUpper() == "SF") | |||||
{ | |||||
// Enable SF telemetry initializer | |||||
services.AddSingleton<ITelemetryInitializer>((serviceProvider) => | |||||
new FabricTelemetryInitializer()); | |||||
} | |||||
} | |||||
} | |||||
app.UseStaticFiles(); | |||||
app.UseMvc(routes => | |||||
{ | |||||
routes.MapRoute( | |||||
name: "default", | |||||
template: "{controller=Home}/{action=Index}/{id?}"); | |||||
}); | |||||
} | |||||
private void RegisterAppInsights(IServiceCollection services) | |||||
{ | |||||
services.AddApplicationInsightsTelemetry(Configuration); | |||||
var orchestratorType = Configuration.GetValue<string>("OrchestratorType"); | |||||
if (orchestratorType?.ToUpper() == "K8S") | |||||
{ | |||||
// Enable K8s telemetry initializer | |||||
services.EnableKubernetes(); | |||||
} | |||||
if (orchestratorType?.ToUpper() == "SF") | |||||
{ | |||||
// Enable SF telemetry initializer | |||||
services.AddSingleton<ITelemetryInitializer>((serviceProvider) => | |||||
new FabricTelemetryInitializer()); | |||||
} | |||||
} | |||||
} | |||||
} | } |
@ -1,22 +1,23 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk.Web"> | <Project Sdk="Microsoft.NET.Sdk.Web"> | ||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.6.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1-beta1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" /> | |||||
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="1.0.113" /> | |||||
</ItemGroup> | |||||
<PropertyGroup> | |||||
<TargetFramework>netcoreapp2.1</TargetFramework> | |||||
<RuntimeFrameworkVersion>2.1.3</RuntimeFrameworkVersion> | |||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> | |||||
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.4.1" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.7.2" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.Kubernetes" Version="1.0.0-beta8" /> | |||||
<PackageReference Include="Microsoft.ApplicationInsights.ServiceFabric" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.1" /> | |||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.3" /> | |||||
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="1.0.113" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\..\BuildingBlocks\HealthChecks\src\Microsoft.AspNetCore.HealthChecks\Microsoft.AspNetCore.HealthChecks.csproj" /> | |||||
<ProjectReference Include="..\..\BuildingBlocks\HealthChecks\src\Microsoft.Extensions.HealthChecks\Microsoft.Extensions.HealthChecks.csproj" /> | |||||
</ItemGroup> | |||||
</Project> | </Project> |