Skip to content

Commit 145339d

Browse files
authored
Merge pull request #4 from AzureAD/webhost
Moved webhost outside the main library
2 parents 95c923b + c9009ab commit 145339d

18 files changed

+154
-274
lines changed

Microsoft.SCIM.Sample/App.config

Lines changed: 0 additions & 74 deletions
This file was deleted.

Microsoft.SCIM.Sample/Startup.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-ef": {
6+
"version": "3.1.2",
7+
"commands": [
8+
"dotnet-ef"
9+
]
10+
}
11+
}
12+
}

Microsoft.SCIM.Sample/Microsoft.SCIM.Sample.csproj renamed to Microsoft.SCIM.WebHostSample/Microsoft.SCIM.WebHostSample.csproj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<OutputType>Exe</OutputType>
54
<TargetFramework>netcoreapp3.1</TargetFramework>
65
</PropertyGroup>
76

8-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
9-
<DefineConstants>DEBUG</DefineConstants>
10-
</PropertyGroup>
11-
127
<ItemGroup>
138
<ProjectReference Include="..\Microsoft.SystemForCrossDomainIdentityManagement\Microsoft.SCIM.csproj" />
149
</ItemGroup>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Hosting;
6+
using Microsoft.Extensions.Configuration;
7+
using Microsoft.Extensions.Hosting;
8+
using Microsoft.Extensions.Logging;
9+
10+
namespace Microsoft.SCIM.WebHostSample
11+
{
12+
public class Program
13+
{
14+
public static void Main(string[] args)
15+
{
16+
CreateHostBuilder(args).Build().Run();
17+
}
18+
19+
public static IHostBuilder CreateHostBuilder(string[] args) =>
20+
Host.CreateDefaultBuilder(args)
21+
.ConfigureWebHostDefaults(webBuilder =>
22+
{
23+
webBuilder.UseStartup<Startup>();
24+
});
25+
}
26+
}

Microsoft.SCIM.Sample/InMemoryGroupProvider.cs renamed to Microsoft.SCIM.WebHostSample/Provider/InMemoryGroupProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
//------------------------------------------------------------
44

5-
namespace Microsoft.SCIM.Sample
5+
namespace Microsoft.SCIM.WebHostSample.Provider
66
{
77
using System;
88
using System.Collections.Generic;
@@ -11,7 +11,7 @@ namespace Microsoft.SCIM.Sample
1111
using System.Threading.Tasks;
1212
using System.Web.Http;
1313
using Microsoft.SCIM;
14-
using Microsoft.SCIM.Sample.Properties;
14+
using Microsoft.SCIM.WebHostSample.Resources;
1515

1616
public class InMemoryGroupProvider : ProviderBase
1717
{

Microsoft.SCIM.Sample/InMemoryProvider.cs renamed to Microsoft.SCIM.WebHostSample/Provider/InMemoryProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
//------------------------------------------------------------
44

5-
namespace Microsoft.SCIM.Sample
5+
namespace Microsoft.SCIM.WebHostSample.Provider
66
{
77
using System;
88
using System.Threading.Tasks;

Microsoft.SCIM.Sample/InMemoryStorage.cs renamed to Microsoft.SCIM.WebHostSample/Provider/InMemoryStorage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
//------------------------------------------------------------
44

5-
namespace Microsoft.SCIM.Sample
5+
namespace Microsoft.SCIM.WebHostSample.Provider
66
{
77
using System;
88
using System.Collections.Generic;

Microsoft.SCIM.Sample/InMemoryUserProvider.cs renamed to Microsoft.SCIM.WebHostSample/Provider/InMemoryUserProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
//------------------------------------------------------------
44

5-
namespace Microsoft.SCIM.Sample
5+
namespace Microsoft.SCIM.WebHostSample.Provider
66
{
77
using System;
88
using System.Collections.Generic;
@@ -11,7 +11,7 @@ namespace Microsoft.SCIM.Sample
1111
using System.Threading.Tasks;
1212
using System.Web.Http;
1313
using Microsoft.SCIM;
14-
using Microsoft.SCIM.Sample.Properties;
14+
using Microsoft.SCIM.WebHostSample.Resources;
1515

1616
public class InMemoryUserProvider : ProviderBase
1717
{

Microsoft.SCIM.Sample/Properties/SampleServiceResources.Designer.cs renamed to Microsoft.SCIM.WebHostSample/Resources/SampleServiceResources.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)