├── Orleans
└── Orleans-Heterogeneous-Silos
│ ├── Orleans.Interfaces
│ ├── User.cs
│ ├── IHello.cs
│ ├── Orleans.Interfaces.csproj
│ └── IHelloArchive.cs
│ ├── Orleans.Client
│ ├── Orleans.Client.csproj
│ ├── HelloWorldClientHostedService.cs
│ ├── Program.cs
│ └── ClusterClientHostedService.cs
│ ├── Orleans.Silo2
│ ├── HelloArchiveGrain.cs
│ ├── Orleans.Silo2.csproj
│ └── Program.cs
│ ├── Orleans.Silo1
│ ├── HelloGrain.cs
│ ├── Orleans.Silo1.csproj
│ └── Program.cs
│ ├── BuildAndRun.ps1
│ └── Hetergeneous.Silos.sln
└── .gitignore
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Interfaces/User.cs:
--------------------------------------------------------------------------------
1 | namespace Orleans.Interfaces
2 | {
3 | public class User
4 | {
5 | public int Id { get; set; }
6 | public string No { get; set; }
7 |
8 | }
9 | }
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Interfaces/IHello.cs:
--------------------------------------------------------------------------------
1 | using System.Threading.Tasks;
2 |
3 | namespace Orleans.Interfaces
4 | {
5 | ///
6 | /// Orleans grain communication interface IHello
7 | ///
8 | public interface IHello : Orleans.IGrainWithIntegerKey
9 | {
10 | Task SayHello(string greeting);
11 | Task GetUser(int id);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Interfaces/Orleans.Interfaces.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp2.2
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Interfaces/IHelloArchive.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Threading.Tasks;
3 |
4 | namespace Orleans.Interfaces
5 | {
6 | ///
7 | /// Orleans grain communication interface that will save all greetings
8 | ///
9 | public interface IHelloArchive : Orleans.IGrainWithIntegerKey
10 | {
11 | Task SayHello(string greeting);
12 |
13 | Task> GetGreetings();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Client/Orleans.Client.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | netcoreapp2.2
6 | latest
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Silo2/HelloArchiveGrain.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Threading.Tasks;
3 | using Orleans.Interfaces;
4 |
5 | namespace Orleans.Silo2
6 | {
7 | public class HelloArchiveGrain : Grain, IHelloArchive
8 | {
9 | public async Task SayHello(string greeting)
10 | {
11 | State.Greetings.Add(greeting);
12 |
13 | await WriteStateAsync();
14 |
15 | return $"You said: '{greeting}', I say: Hello!";
16 | }
17 |
18 | public Task> GetGreetings()
19 | {
20 | return Task.FromResult>(State.Greetings);
21 | }
22 | }
23 |
24 | public class GreetingArchive
25 | {
26 | public List Greetings { get; } = new List();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Silo1/HelloGrain.cs:
--------------------------------------------------------------------------------
1 | using System.Threading.Tasks;
2 | using Microsoft.Extensions.Logging;
3 | using Orleans.Interfaces;
4 |
5 | namespace Orleans.Silo1
6 | {
7 | ///
8 | /// Orleans grain implementation class HelloGrain.
9 | ///
10 | public class HelloGrain : Orleans.Grain, IHello
11 | {
12 | private readonly ILogger logger;
13 |
14 | public HelloGrain(ILogger logger)
15 | {
16 | this.logger = logger;
17 | }
18 |
19 | Task IHello.SayHello(string greeting)
20 | {
21 | logger.LogInformation($"SayHello message received: greeting = '{greeting}'");
22 | return Task.FromResult($"You said: '{greeting}', I say: Hello!");
23 | }
24 |
25 | public Task GetUser(int id) => Task.FromResult(new User() { Id = id, No = $"No.{id}" });
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Silo1/Orleans.Silo1.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | netcoreapp2.2
6 | latest
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Silo2/Orleans.Silo2.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | netcoreapp2.2
6 | latest
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/BuildAndRun.ps1:
--------------------------------------------------------------------------------
1 | # First build the Orleans vNext nuget packages locally
2 | if((Test-Path "..\..\vNext\Binaries\Debug\") -eq $false) {
3 | # this will only work in Windows.
4 | # Alternatively build the nuget packages and place them in the /vNext/Binaries/Debug folder
5 | # (or make sure there is a package source available with the Orleans 2.0 TP nugets)
6 | #..\..\Build.cmd netstandard
7 | }
8 |
9 | # Uncomment the following to clear the nuget cache if rebuilding the packages doesn't seem to take effect.
10 | #dotnet nuget locals all --clear
11 |
12 | dotnet restore
13 | if ($LastExitCode -ne 0) { return; }
14 |
15 | dotnet build --no-restore
16 | if ($LastExitCode -ne 0) { return; }
17 |
18 | # Run the 2 console apps in different windows
19 |
20 | Start-Process "dotnet" -ArgumentList "run --project Orleans.Silo1 --no-build"
21 | Start-Sleep 10
22 | Start-Process "dotnet" -ArgumentList "run --project Orleans.Silo2 --no-build"
23 | Start-Sleep 10
24 | Start-Process "dotnet" -ArgumentList "run --project Orleans.Client --no-build"
25 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Client/HelloWorldClientHostedService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading;
3 | using System.Threading.Tasks;
4 | using Microsoft.Extensions.Hosting;
5 | using Orleans.Interfaces;
6 |
7 | namespace Orleans.Client
8 | {
9 | public class HelloWorldClientHostedService : IHostedService
10 | {
11 | private readonly IClusterClient _client;
12 |
13 | public HelloWorldClientHostedService(IClusterClient client, IApplicationLifetime lifetime)
14 | {
15 | _client = client;
16 | }
17 |
18 | public async Task StartAsync(CancellationToken cancellationToken)
19 | {
20 | // example of calling grains from the initialized client
21 | var friend = _client.GetGrain(0);
22 | var response = await friend.SayHello("Good morning, my friend!");
23 | Console.WriteLine("\n\n{0}\n\n", response);
24 | // var test = _client.GetGrain(0);
25 | //
26 | // var num = await test.GetNum(99);
27 | // Console.WriteLine(num);
28 | }
29 |
30 | public Task StopAsync(CancellationToken cancellationToken)
31 | {
32 | return Task.CompletedTask;
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Client/Program.cs:
--------------------------------------------------------------------------------
1 | using System.Threading.Tasks;
2 | using Microsoft.Extensions.DependencyInjection;
3 | using Microsoft.Extensions.Hosting;
4 | using Microsoft.Extensions.Logging;
5 |
6 | namespace Orleans.Client
7 | {
8 | ///
9 | /// Orleans test silo client
10 | ///
11 | public class Program
12 | {
13 | public static Task Main(string[] args)
14 | {
15 | return new HostBuilder()
16 | .ConfigureServices(services =>
17 | {
18 | services.AddSingleton();
19 | services.AddSingleton(_ => _.GetService());
20 | services.AddSingleton(_ => _.GetService().Client);
21 |
22 | services.AddHostedService();
23 |
24 | services.Configure(options =>
25 | {
26 | options.SuppressStatusMessages = true;
27 | });
28 | })
29 | .ConfigureLogging(builder =>
30 | {
31 | builder.AddConsole();
32 | })
33 | .RunConsoleAsync();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Silo1/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading.Tasks;
3 | using Microsoft.Extensions.DependencyInjection;
4 | using Microsoft.Extensions.Hosting;
5 | using Microsoft.Extensions.Logging;
6 | using Orleans.Configuration;
7 | using Orleans.Hosting;
8 |
9 | namespace Orleans.Silo1
10 | {
11 | public class Program
12 | {
13 | public static Task Main(string[] args)
14 | {
15 | Console.Title = "SiloHost";
16 | return new HostBuilder()
17 | .UseOrleans(builder =>
18 | {
19 | builder
20 | .UseAzureStorageClustering(option => option.ConnectionString = "DefaultEndpointsProtocol=https;AccountName=shengjie;AccountKey=IrXu5W6vrvK75qQlFAjbhjrUcwO9GOUWpiMbrJpRbVHnRDeK3Vb0PPzYndG2iuiUdRmi3fvVwzgzqCWaVycFyA==;TableEndpoint=https://shengjie.table.cosmos.azure.com:443/;")
21 | //.UseLocalhostClustering(11112, 30001, new IPEndPoint(IPAddress.Loopback, 11111))
22 | .Configure(option=>option.TypeMapRefreshInterval=TimeSpan.FromSeconds(30))
23 | .Configure(options =>
24 | {
25 | options.ClusterId = "dev";
26 | options.ServiceId = "silo1";
27 | })
28 | .ConfigureEndpoints(siloPort: 11111, gatewayPort: 30000)
29 | .ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(HelloGrain).Assembly).WithReferences());
30 | })
31 | .ConfigureServices(services =>
32 | {
33 | services.Configure(options =>
34 | {
35 | options.SuppressStatusMessages = true;
36 | });
37 | })
38 | .ConfigureLogging(builder =>
39 | {
40 | builder.AddConsole();
41 | })
42 | .RunConsoleAsync();
43 | }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Silo2/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading.Tasks;
3 | using Microsoft.Extensions.DependencyInjection;
4 | using Microsoft.Extensions.Hosting;
5 | using Microsoft.Extensions.Logging;
6 | using Orleans.Configuration;
7 | using Orleans.Hosting;
8 |
9 | namespace Orleans.Silo2
10 | {
11 | public class Program
12 | {
13 | public static Task Main(string[] args)
14 | {
15 | Console.Title = "SiloHost2";
16 | return new HostBuilder()
17 | .UseOrleans(builder =>
18 | {
19 | builder
20 | .UseAzureStorageClustering(option => option.ConnectionString = "DefaultEndpointsProtocol=https;AccountName=shengjie;AccountKey=IrXu5W6vrvK75qQlFAjbhjrUcwO9GOUWpiMbrJpRbVHnRDeK3Vb0PPzYndG2iuiUdRmi3fvVwzgzqCWaVycFyA==;TableEndpoint=https://shengjie.table.cosmos.azure.com:443/;")
21 | //.UseLocalhostClustering(11112, 30001, new IPEndPoint(IPAddress.Loopback, 11111))
22 | .Configure(option=>option.TypeMapRefreshInterval=TimeSpan.FromSeconds(30))
23 | .Configure(options =>
24 | {
25 | options.ClusterId = "dev";
26 | options.ServiceId = "silo2";
27 | })
28 | .ConfigureEndpoints(siloPort: 11112, gatewayPort: 30001)
29 | .ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(HelloArchiveGrain).Assembly).WithReferences());
30 | })
31 | .ConfigureServices(services =>
32 | {
33 | services.Configure(options =>
34 | {
35 | options.SuppressStatusMessages = true;
36 | });
37 | })
38 | .ConfigureLogging(builder =>
39 | {
40 | builder.AddConsole();
41 | })
42 | .RunConsoleAsync();
43 | }
44 | }
45 | }
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Orleans.Client/ClusterClientHostedService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading;
3 | using System.Threading.Tasks;
4 | using Microsoft.Extensions.Hosting;
5 | using Microsoft.Extensions.Logging;
6 | using Orleans.Configuration;
7 | using Orleans.Hosting;
8 | using Orleans.Runtime;
9 |
10 | namespace Orleans.Client
11 | {
12 | public class ClusterClientHostedService : IHostedService
13 | {
14 | private readonly ILogger _logger;
15 |
16 | public ClusterClientHostedService(ILogger logger, ILoggerProvider loggerProvider)
17 | {
18 | _logger = logger;
19 | Client = new ClientBuilder()
20 | .Configure(options =>
21 | {
22 | options.ClusterId = "dev";
23 | options.ServiceId = "dev";
24 | })
25 | .UseAzureStorageClustering(option => option.ConnectionString = "DefaultEndpointsProtocol=https;AccountName=shengjie;AccountKey=IrXu5W6vrvK75qQlFAjbhjrUcwO9GOUWpiMbrJpRbVHnRDeK3Vb0PPzYndG2iuiUdRmi3fvVwzgzqCWaVycFyA==;TableEndpoint=https://shengjie.table.cosmos.azure.com:443/;")
26 | .ConfigureLogging(builder => builder.AddProvider(loggerProvider))
27 | .Build();
28 | }
29 |
30 | public Task StartAsync(CancellationToken cancellationToken)
31 | {
32 | var attempt = 0;
33 | var maxAttempts = 100;
34 | var delay = TimeSpan.FromSeconds(1);
35 | return Client.Connect(async error =>
36 | {
37 | if (cancellationToken.IsCancellationRequested)
38 | {
39 | return false;
40 | }
41 |
42 | if (++attempt < maxAttempts)
43 | {
44 | _logger.LogWarning(error,
45 | "Failed to connect to Orleans cluster on attempt {@Attempt} of {@MaxAttempts}.",
46 | attempt, maxAttempts);
47 |
48 | try
49 | {
50 | await Task.Delay(delay, cancellationToken);
51 | }
52 | catch (OperationCanceledException)
53 | {
54 | return false;
55 | }
56 |
57 | return true;
58 | }
59 | else
60 | {
61 | _logger.LogError(error,
62 | "Failed to connect to Orleans cluster on attempt {@Attempt} of {@MaxAttempts}.",
63 | attempt, maxAttempts);
64 |
65 | return false;
66 | }
67 | });
68 | }
69 |
70 | public async Task StopAsync(CancellationToken cancellationToken)
71 | {
72 | try
73 | {
74 | await Client.Close();
75 | }
76 | catch (OrleansException error)
77 | {
78 | _logger.LogWarning(error, "Error while gracefully disconnecting from Orleans cluster. Will ignore and continue to shutdown.");
79 | }
80 | }
81 |
82 | public IClusterClient Client { get; }
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/Orleans/Orleans-Heterogeneous-Silos/Hetergeneous.Silos.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26124.0
5 | MinimumVisualStudioVersion = 15.0.26124.0
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orleans.Client", "Orleans.Client\Orleans.Client.csproj", "{9029FD89-061C-4949-85C6-63871E1A9684}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orleans.Interfaces", "Orleans.Interfaces\Orleans.Interfaces.csproj", "{9558C529-A6C1-4936-9888-DB66C68AAFFE}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orleans.Silo1", "Orleans.Silo1\Orleans.Silo1.csproj", "{60D2F432-7581-4322-BCFD-93BC21CB2A4E}"
11 | EndProject
12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orleans.Silo2", "Orleans.Silo2\Orleans.Silo2.csproj", "{1CAA355D-C9AC-40F3-8123-881FD178C476}"
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Debug|x64 = Debug|x64
18 | Debug|x86 = Debug|x86
19 | Release|Any CPU = Release|Any CPU
20 | Release|x64 = Release|x64
21 | Release|x86 = Release|x86
22 | EndGlobalSection
23 | GlobalSection(SolutionProperties) = preSolution
24 | HideSolutionNode = FALSE
25 | EndGlobalSection
26 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
27 | {9029FD89-061C-4949-85C6-63871E1A9684}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28 | {9029FD89-061C-4949-85C6-63871E1A9684}.Debug|Any CPU.Build.0 = Debug|Any CPU
29 | {9029FD89-061C-4949-85C6-63871E1A9684}.Debug|x64.ActiveCfg = Debug|Any CPU
30 | {9029FD89-061C-4949-85C6-63871E1A9684}.Debug|x64.Build.0 = Debug|Any CPU
31 | {9029FD89-061C-4949-85C6-63871E1A9684}.Debug|x86.ActiveCfg = Debug|Any CPU
32 | {9029FD89-061C-4949-85C6-63871E1A9684}.Debug|x86.Build.0 = Debug|Any CPU
33 | {9029FD89-061C-4949-85C6-63871E1A9684}.Release|Any CPU.ActiveCfg = Release|Any CPU
34 | {9029FD89-061C-4949-85C6-63871E1A9684}.Release|Any CPU.Build.0 = Release|Any CPU
35 | {9029FD89-061C-4949-85C6-63871E1A9684}.Release|x64.ActiveCfg = Release|Any CPU
36 | {9029FD89-061C-4949-85C6-63871E1A9684}.Release|x64.Build.0 = Release|Any CPU
37 | {9029FD89-061C-4949-85C6-63871E1A9684}.Release|x86.ActiveCfg = Release|Any CPU
38 | {9029FD89-061C-4949-85C6-63871E1A9684}.Release|x86.Build.0 = Release|Any CPU
39 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Debug|Any CPU.Build.0 = Debug|Any CPU
41 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Debug|x64.ActiveCfg = Debug|Any CPU
42 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Debug|x64.Build.0 = Debug|Any CPU
43 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Debug|x86.ActiveCfg = Debug|Any CPU
44 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Debug|x86.Build.0 = Debug|Any CPU
45 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Release|Any CPU.ActiveCfg = Release|Any CPU
46 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Release|Any CPU.Build.0 = Release|Any CPU
47 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Release|x64.ActiveCfg = Release|Any CPU
48 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Release|x64.Build.0 = Release|Any CPU
49 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Release|x86.ActiveCfg = Release|Any CPU
50 | {9558C529-A6C1-4936-9888-DB66C68AAFFE}.Release|x86.Build.0 = Release|Any CPU
51 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
52 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
53 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Debug|x64.ActiveCfg = Debug|Any CPU
54 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Debug|x64.Build.0 = Debug|Any CPU
55 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Debug|x86.ActiveCfg = Debug|Any CPU
56 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Debug|x86.Build.0 = Debug|Any CPU
57 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
58 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Release|Any CPU.Build.0 = Release|Any CPU
59 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Release|x64.ActiveCfg = Release|Any CPU
60 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Release|x64.Build.0 = Release|Any CPU
61 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Release|x86.ActiveCfg = Release|Any CPU
62 | {60D2F432-7581-4322-BCFD-93BC21CB2A4E}.Release|x86.Build.0 = Release|Any CPU
63 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
64 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Debug|Any CPU.Build.0 = Debug|Any CPU
65 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Debug|x64.ActiveCfg = Debug|Any CPU
66 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Debug|x64.Build.0 = Debug|Any CPU
67 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Debug|x86.ActiveCfg = Debug|Any CPU
68 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Debug|x86.Build.0 = Debug|Any CPU
69 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Release|Any CPU.ActiveCfg = Release|Any CPU
70 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Release|Any CPU.Build.0 = Release|Any CPU
71 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Release|x64.ActiveCfg = Release|Any CPU
72 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Release|x64.Build.0 = Release|Any CPU
73 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Release|x86.ActiveCfg = Release|Any CPU
74 | {1CAA355D-C9AC-40F3-8123-881FD178C476}.Release|x86.Build.0 = Release|Any CPU
75 | EndGlobalSection
76 | EndGlobal
77 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Aa][Rr][Mm]/
27 | [Aa][Rr][Mm]64/
28 | bld/
29 | [Bb]in/
30 | [Oo]bj/
31 | [Ll]og/
32 |
33 | # Visual Studio 2015/2017 cache/options directory
34 | .vs/
35 | # Uncomment if you have tasks that create the project's static files in wwwroot
36 | #wwwroot/
37 |
38 | # Visual Studio 2017 auto generated files
39 | Generated\ Files/
40 |
41 | # MSTest test Results
42 | [Tt]est[Rr]esult*/
43 | [Bb]uild[Ll]og.*
44 |
45 | # NUnit
46 | *.VisualState.xml
47 | TestResult.xml
48 | nunit-*.xml
49 |
50 | # Build Results of an ATL Project
51 | [Dd]ebugPS/
52 | [Rr]eleasePS/
53 | dlldata.c
54 |
55 | # Benchmark Results
56 | BenchmarkDotNet.Artifacts/
57 |
58 | # .NET Core
59 | project.lock.json
60 | project.fragment.lock.json
61 | artifacts/
62 |
63 | # StyleCop
64 | StyleCopReport.xml
65 |
66 | # Files built by Visual Studio
67 | *_i.c
68 | *_p.c
69 | *_h.h
70 | *.ilk
71 | *.meta
72 | *.obj
73 | *.iobj
74 | *.pch
75 | *.pdb
76 | *.ipdb
77 | *.pgc
78 | *.pgd
79 | *.rsp
80 | *.sbr
81 | *.tlb
82 | *.tli
83 | *.tlh
84 | *.tmp
85 | *.tmp_proj
86 | *_wpftmp.csproj
87 | *.log
88 | *.vspscc
89 | *.vssscc
90 | .builds
91 | *.pidb
92 | *.svclog
93 | *.scc
94 |
95 | # Chutzpah Test files
96 | _Chutzpah*
97 |
98 | # Visual C++ cache files
99 | ipch/
100 | *.aps
101 | *.ncb
102 | *.opendb
103 | *.opensdf
104 | *.sdf
105 | *.cachefile
106 | *.VC.db
107 | *.VC.VC.opendb
108 |
109 | # Visual Studio profiler
110 | *.psess
111 | *.vsp
112 | *.vspx
113 | *.sap
114 |
115 | # Visual Studio Trace Files
116 | *.e2e
117 |
118 | # TFS 2012 Local Workspace
119 | $tf/
120 |
121 | # Guidance Automation Toolkit
122 | *.gpState
123 |
124 | # ReSharper is a .NET coding add-in
125 | _ReSharper*/
126 | *.[Rr]e[Ss]harper
127 | *.DotSettings.user
128 |
129 | # JustCode is a .NET coding add-in
130 | .JustCode
131 |
132 | # TeamCity is a build add-in
133 | _TeamCity*
134 |
135 | # DotCover is a Code Coverage Tool
136 | *.dotCover
137 |
138 | # AxoCover is a Code Coverage Tool
139 | .axoCover/*
140 | !.axoCover/settings.json
141 |
142 | # Visual Studio code coverage results
143 | *.coverage
144 | *.coveragexml
145 |
146 | # NCrunch
147 | _NCrunch_*
148 | .*crunch*.local.xml
149 | nCrunchTemp_*
150 |
151 | # MightyMoose
152 | *.mm.*
153 | AutoTest.Net/
154 |
155 | # Web workbench (sass)
156 | .sass-cache/
157 |
158 | # Installshield output folder
159 | [Ee]xpress/
160 |
161 | # DocProject is a documentation generator add-in
162 | DocProject/buildhelp/
163 | DocProject/Help/*.HxT
164 | DocProject/Help/*.HxC
165 | DocProject/Help/*.hhc
166 | DocProject/Help/*.hhk
167 | DocProject/Help/*.hhp
168 | DocProject/Help/Html2
169 | DocProject/Help/html
170 |
171 | # Click-Once directory
172 | publish/
173 |
174 | # Publish Web Output
175 | *.[Pp]ublish.xml
176 | *.azurePubxml
177 | # Note: Comment the next line if you want to checkin your web deploy settings,
178 | # but database connection strings (with potential passwords) will be unencrypted
179 | *.pubxml
180 | *.publishproj
181 |
182 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
183 | # checkin your Azure Web App publish settings, but sensitive information contained
184 | # in these scripts will be unencrypted
185 | PublishScripts/
186 |
187 | # NuGet Packages
188 | *.nupkg
189 | # NuGet Symbol Packages
190 | *.snupkg
191 | # The packages folder can be ignored because of Package Restore
192 | **/[Pp]ackages/*
193 | # except build/, which is used as an MSBuild target.
194 | !**/[Pp]ackages/build/
195 | # Uncomment if necessary however generally it will be regenerated when needed
196 | #!**/[Pp]ackages/repositories.config
197 | # NuGet v3's project.json files produces more ignorable files
198 | *.nuget.props
199 | *.nuget.targets
200 |
201 | # Microsoft Azure Build Output
202 | csx/
203 | *.build.csdef
204 |
205 | # Microsoft Azure Emulator
206 | ecf/
207 | rcf/
208 |
209 | # Windows Store app package directories and files
210 | AppPackages/
211 | BundleArtifacts/
212 | Package.StoreAssociation.xml
213 | _pkginfo.txt
214 | *.appx
215 | *.appxbundle
216 | *.appxupload
217 |
218 | # Visual Studio cache files
219 | # files ending in .cache can be ignored
220 | *.[Cc]ache
221 | # but keep track of directories ending in .cache
222 | !?*.[Cc]ache/
223 |
224 | # Others
225 | ClientBin/
226 | ~$*
227 | *~
228 | *.dbmdl
229 | *.dbproj.schemaview
230 | *.jfm
231 | *.pfx
232 | *.publishsettings
233 | orleans.codegen.cs
234 |
235 | # Including strong name files can present a security risk
236 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
237 | #*.snk
238 |
239 | # Since there are multiple workflows, uncomment next line to ignore bower_components
240 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
241 | #bower_components/
242 |
243 | # RIA/Silverlight projects
244 | Generated_Code/
245 |
246 | # Backup & report files from converting an old project file
247 | # to a newer Visual Studio version. Backup files are not needed,
248 | # because we have git ;-)
249 | _UpgradeReport_Files/
250 | Backup*/
251 | UpgradeLog*.XML
252 | UpgradeLog*.htm
253 | ServiceFabricBackup/
254 | *.rptproj.bak
255 |
256 | # SQL Server files
257 | *.mdf
258 | *.ldf
259 | *.ndf
260 |
261 | # Business Intelligence projects
262 | *.rdl.data
263 | *.bim.layout
264 | *.bim_*.settings
265 | *.rptproj.rsuser
266 | *- [Bb]ackup.rdl
267 | *- [Bb]ackup ([0-9]).rdl
268 | *- [Bb]ackup ([0-9][0-9]).rdl
269 |
270 | # Microsoft Fakes
271 | FakesAssemblies/
272 |
273 | # GhostDoc plugin setting file
274 | *.GhostDoc.xml
275 |
276 | # Node.js Tools for Visual Studio
277 | .ntvs_analysis.dat
278 | node_modules/
279 |
280 | # Visual Studio 6 build log
281 | *.plg
282 |
283 | # Visual Studio 6 workspace options file
284 | *.opt
285 |
286 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
287 | *.vbw
288 |
289 | # Visual Studio LightSwitch build output
290 | **/*.HTMLClient/GeneratedArtifacts
291 | **/*.DesktopClient/GeneratedArtifacts
292 | **/*.DesktopClient/ModelManifest.xml
293 | **/*.Server/GeneratedArtifacts
294 | **/*.Server/ModelManifest.xml
295 | _Pvt_Extensions
296 |
297 | # Paket dependency manager
298 | .paket/paket.exe
299 | paket-files/
300 |
301 | # FAKE - F# Make
302 | .fake/
303 |
304 | # CodeRush personal settings
305 | .cr/personal
306 |
307 | # Python Tools for Visual Studio (PTVS)
308 | __pycache__/
309 | *.pyc
310 |
311 | # Cake - Uncomment if you are using it
312 | # tools/**
313 | # !tools/packages.config
314 |
315 | # Tabs Studio
316 | *.tss
317 |
318 | # Telerik's JustMock configuration file
319 | *.jmconfig
320 |
321 | # BizTalk build output
322 | *.btp.cs
323 | *.btm.cs
324 | *.odx.cs
325 | *.xsd.cs
326 |
327 | # OpenCover UI analysis results
328 | OpenCover/
329 |
330 | # Azure Stream Analytics local run output
331 | ASALocalRun/
332 |
333 | # MSBuild Binary and Structured Log
334 | *.binlog
335 |
336 | # NVidia Nsight GPU debugger configuration file
337 | *.nvuser
338 |
339 | # MFractors (Xamarin productivity tool) working folder
340 | .mfractor/
341 |
342 | # Local History for Visual Studio
343 | .localhistory/
344 |
345 | # BeatPulse healthcheck temp database
346 | healthchecksdb
347 |
348 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
349 | MigrationBackup/
350 |
351 | # Ionide (cross platform F# VS Code tools) working folder
352 | .ionide/
353 |
--------------------------------------------------------------------------------