Skip to content

Commit 57e1851

Browse files
committed
Ensure line endings are right
1 parent c51038f commit 57e1851

8 files changed

+357
-352
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
*.sh text eol=lf

src/MonitoringDemo.sln

+65-65
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
1-
Microsoft Visual Studio Solution File, Format Version 12.00
2-
# Visual Studio Version 17
3-
VisualStudioVersion = 17.9.34902.65
4-
MinimumVisualStudioVersion = 15.0.26730.12
5-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClientUI", "ClientUI\ClientUI.csproj", "{D4DCF868-A625-4B0B-BB20-C150553A6548}"
6-
EndProject
7-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Messages", "Messages\Messages.csproj", "{F6DE8266-1F56-4241-965C-2DDBB76CEC1E}"
8-
EndProject
9-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sales", "Sales\Sales.csproj", "{CD42E5DF-D4A7-4933-8017-1398B2E9560F}"
10-
EndProject
11-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Billing", "Billing\Billing.csproj", "{9BF02A43-6D9D-4B49-A06D-603A66C6BCB5}"
12-
EndProject
13-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shipping", "Shipping\Shipping.csproj", "{41F0D809-8FA4-4139-9131-09441D69AFB1}"
14-
EndProject
15-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlatformLauncher", "PlatformLauncher\PlatformLauncher.csproj", "{D98DF31F-6B4B-42E1-BEE5-8CAB949638C2}"
16-
EndProject
17-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MonitoringDemo", "MonitoringDemo\MonitoringDemo.csproj", "{55C64607-52E9-4E85-A547-50B191856A93}"
18-
EndProject
19-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7D29C905-CE3A-4D93-8271-7BA09CEE1631}"
20-
ProjectSection(SolutionItems) = preProject
21-
Directory.Build.props = Directory.Build.props
22-
EndProjectSection
23-
EndProject
24-
Global
25-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
26-
Debug|Any CPU = Debug|Any CPU
27-
Release|Any CPU = Release|Any CPU
28-
EndGlobalSection
29-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
30-
{D4DCF868-A625-4B0B-BB20-C150553A6548}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31-
{D4DCF868-A625-4B0B-BB20-C150553A6548}.Debug|Any CPU.Build.0 = Debug|Any CPU
32-
{D4DCF868-A625-4B0B-BB20-C150553A6548}.Release|Any CPU.ActiveCfg = Release|Any CPU
33-
{D4DCF868-A625-4B0B-BB20-C150553A6548}.Release|Any CPU.Build.0 = Release|Any CPU
34-
{F6DE8266-1F56-4241-965C-2DDBB76CEC1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35-
{F6DE8266-1F56-4241-965C-2DDBB76CEC1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
36-
{F6DE8266-1F56-4241-965C-2DDBB76CEC1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
37-
{F6DE8266-1F56-4241-965C-2DDBB76CEC1E}.Release|Any CPU.Build.0 = Release|Any CPU
38-
{CD42E5DF-D4A7-4933-8017-1398B2E9560F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39-
{CD42E5DF-D4A7-4933-8017-1398B2E9560F}.Debug|Any CPU.Build.0 = Debug|Any CPU
40-
{CD42E5DF-D4A7-4933-8017-1398B2E9560F}.Release|Any CPU.ActiveCfg = Release|Any CPU
41-
{CD42E5DF-D4A7-4933-8017-1398B2E9560F}.Release|Any CPU.Build.0 = Release|Any CPU
42-
{9BF02A43-6D9D-4B49-A06D-603A66C6BCB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43-
{9BF02A43-6D9D-4B49-A06D-603A66C6BCB5}.Debug|Any CPU.Build.0 = Debug|Any CPU
44-
{9BF02A43-6D9D-4B49-A06D-603A66C6BCB5}.Release|Any CPU.ActiveCfg = Release|Any CPU
45-
{9BF02A43-6D9D-4B49-A06D-603A66C6BCB5}.Release|Any CPU.Build.0 = Release|Any CPU
46-
{41F0D809-8FA4-4139-9131-09441D69AFB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47-
{41F0D809-8FA4-4139-9131-09441D69AFB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
48-
{41F0D809-8FA4-4139-9131-09441D69AFB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
49-
{41F0D809-8FA4-4139-9131-09441D69AFB1}.Release|Any CPU.Build.0 = Release|Any CPU
50-
{D98DF31F-6B4B-42E1-BEE5-8CAB949638C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51-
{D98DF31F-6B4B-42E1-BEE5-8CAB949638C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
52-
{D98DF31F-6B4B-42E1-BEE5-8CAB949638C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
53-
{D98DF31F-6B4B-42E1-BEE5-8CAB949638C2}.Release|Any CPU.Build.0 = Release|Any CPU
54-
{55C64607-52E9-4E85-A547-50B191856A93}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
55-
{55C64607-52E9-4E85-A547-50B191856A93}.Debug|Any CPU.Build.0 = Debug|Any CPU
56-
{55C64607-52E9-4E85-A547-50B191856A93}.Release|Any CPU.ActiveCfg = Release|Any CPU
57-
{55C64607-52E9-4E85-A547-50B191856A93}.Release|Any CPU.Build.0 = Release|Any CPU
58-
EndGlobalSection
59-
GlobalSection(SolutionProperties) = preSolution
60-
HideSolutionNode = FALSE
61-
EndGlobalSection
62-
GlobalSection(ExtensibilityGlobals) = postSolution
63-
SolutionGuid = {081FC59E-04F4-4FB2-88A6-64A7C18BAA10}
64-
EndGlobalSection
65-
EndGlobal
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.9.34902.65
4+
MinimumVisualStudioVersion = 15.0.26730.12
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClientUI", "ClientUI\ClientUI.csproj", "{D4DCF868-A625-4B0B-BB20-C150553A6548}"
6+
EndProject
7+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Messages", "Messages\Messages.csproj", "{F6DE8266-1F56-4241-965C-2DDBB76CEC1E}"
8+
EndProject
9+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sales", "Sales\Sales.csproj", "{CD42E5DF-D4A7-4933-8017-1398B2E9560F}"
10+
EndProject
11+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Billing", "Billing\Billing.csproj", "{9BF02A43-6D9D-4B49-A06D-603A66C6BCB5}"
12+
EndProject
13+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shipping", "Shipping\Shipping.csproj", "{41F0D809-8FA4-4139-9131-09441D69AFB1}"
14+
EndProject
15+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlatformLauncher", "PlatformLauncher\PlatformLauncher.csproj", "{D98DF31F-6B4B-42E1-BEE5-8CAB949638C2}"
16+
EndProject
17+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MonitoringDemo", "MonitoringDemo\MonitoringDemo.csproj", "{55C64607-52E9-4E85-A547-50B191856A93}"
18+
EndProject
19+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7D29C905-CE3A-4D93-8271-7BA09CEE1631}"
20+
ProjectSection(SolutionItems) = preProject
21+
Directory.Build.props = Directory.Build.props
22+
EndProjectSection
23+
EndProject
24+
Global
25+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
26+
Debug|Any CPU = Debug|Any CPU
27+
Release|Any CPU = Release|Any CPU
28+
EndGlobalSection
29+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
30+
{D4DCF868-A625-4B0B-BB20-C150553A6548}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31+
{D4DCF868-A625-4B0B-BB20-C150553A6548}.Debug|Any CPU.Build.0 = Debug|Any CPU
32+
{D4DCF868-A625-4B0B-BB20-C150553A6548}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{D4DCF868-A625-4B0B-BB20-C150553A6548}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{F6DE8266-1F56-4241-965C-2DDBB76CEC1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35+
{F6DE8266-1F56-4241-965C-2DDBB76CEC1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
36+
{F6DE8266-1F56-4241-965C-2DDBB76CEC1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
37+
{F6DE8266-1F56-4241-965C-2DDBB76CEC1E}.Release|Any CPU.Build.0 = Release|Any CPU
38+
{CD42E5DF-D4A7-4933-8017-1398B2E9560F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{CD42E5DF-D4A7-4933-8017-1398B2E9560F}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{CD42E5DF-D4A7-4933-8017-1398B2E9560F}.Release|Any CPU.ActiveCfg = Release|Any CPU
41+
{CD42E5DF-D4A7-4933-8017-1398B2E9560F}.Release|Any CPU.Build.0 = Release|Any CPU
42+
{9BF02A43-6D9D-4B49-A06D-603A66C6BCB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43+
{9BF02A43-6D9D-4B49-A06D-603A66C6BCB5}.Debug|Any CPU.Build.0 = Debug|Any CPU
44+
{9BF02A43-6D9D-4B49-A06D-603A66C6BCB5}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{9BF02A43-6D9D-4B49-A06D-603A66C6BCB5}.Release|Any CPU.Build.0 = Release|Any CPU
46+
{41F0D809-8FA4-4139-9131-09441D69AFB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47+
{41F0D809-8FA4-4139-9131-09441D69AFB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
48+
{41F0D809-8FA4-4139-9131-09441D69AFB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
49+
{41F0D809-8FA4-4139-9131-09441D69AFB1}.Release|Any CPU.Build.0 = Release|Any CPU
50+
{D98DF31F-6B4B-42E1-BEE5-8CAB949638C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51+
{D98DF31F-6B4B-42E1-BEE5-8CAB949638C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
52+
{D98DF31F-6B4B-42E1-BEE5-8CAB949638C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
53+
{D98DF31F-6B4B-42E1-BEE5-8CAB949638C2}.Release|Any CPU.Build.0 = Release|Any CPU
54+
{55C64607-52E9-4E85-A547-50B191856A93}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
55+
{55C64607-52E9-4E85-A547-50B191856A93}.Debug|Any CPU.Build.0 = Debug|Any CPU
56+
{55C64607-52E9-4E85-A547-50B191856A93}.Release|Any CPU.ActiveCfg = Release|Any CPU
57+
{55C64607-52E9-4E85-A547-50B191856A93}.Release|Any CPU.Build.0 = Release|Any CPU
58+
EndGlobalSection
59+
GlobalSection(SolutionProperties) = preSolution
60+
HideSolutionNode = FALSE
61+
EndGlobalSection
62+
GlobalSection(ExtensibilityGlobals) = postSolution
63+
SolutionGuid = {081FC59E-04F4-4FB2-88A6-64A7C18BAA10}
64+
EndGlobalSection
65+
EndGlobal

src/MonitoringDemo/ColoredConsole.cs

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
namespace MonitoringDemo;
2-
3-
static class ColoredConsole
4-
{
5-
public static IDisposable Use(ConsoleColor color)
6-
{
7-
var previousColor = Console.ForegroundColor;
8-
Console.ForegroundColor = color;
9-
10-
return new Restorer(previousColor);
11-
}
12-
13-
class Restorer(ConsoleColor previousColor) : IDisposable
14-
{
15-
public void Dispose()
16-
{
17-
Console.ForegroundColor = previousColor;
18-
}
19-
}
1+
namespace MonitoringDemo;
2+
3+
static class ColoredConsole
4+
{
5+
public static IDisposable Use(ConsoleColor color)
6+
{
7+
var previousColor = Console.ForegroundColor;
8+
Console.ForegroundColor = color;
9+
10+
return new Restorer(previousColor);
11+
}
12+
13+
class Restorer(ConsoleColor previousColor) : IDisposable
14+
{
15+
public void Dispose()
16+
{
17+
Console.ForegroundColor = previousColor;
18+
}
19+
}
2020
}

src/MonitoringDemo/DemoLauncher.cs

+92-92
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,93 @@
1-
namespace MonitoringDemo;
2-
3-
sealed class DemoLauncher : IDisposable
4-
{
5-
public DemoLauncher()
6-
{
7-
demoProcessGroup = new ProcessGroup("Particular.MonitoringDemo");
8-
9-
File.WriteAllText(@".\Marker.sln", string.Empty);
10-
}
11-
12-
public void Dispose()
13-
{
14-
disposed = true;
15-
16-
demoProcessGroup.Dispose();
17-
18-
File.Delete(@".\Marker.sln");
19-
20-
Console.WriteLine("Removing Transport Files");
21-
DirectoryEx.Delete(".learningtransport");
22-
23-
Console.WriteLine("Deleting log folders");
24-
DirectoryEx.Delete(".logs");
25-
26-
Console.WriteLine("Deleting db folders");
27-
DirectoryEx.ForceDeleteReadonly(".db");
28-
DirectoryEx.ForceDeleteReadonly(".audit-db");
29-
}
30-
31-
public void Platform()
32-
{
33-
if (disposed)
34-
{
35-
return;
36-
}
37-
38-
demoProcessGroup.AddProcess(Path.Combine("PlatformLauncher", "PlatformLauncher.dll"));
39-
}
40-
41-
public void Billing()
42-
{
43-
if (disposed)
44-
{
45-
return;
46-
}
47-
48-
demoProcessGroup.AddProcess(Path.Combine("Billing", "Billing.dll"));
49-
}
50-
51-
public void Shipping()
52-
{
53-
if (disposed)
54-
{
55-
return;
56-
}
57-
58-
demoProcessGroup.AddProcess(Path.Combine("Shipping", "Shipping.dll"));
59-
}
60-
61-
public void ScaleOutSales()
62-
{
63-
if (disposed)
64-
{
65-
return;
66-
}
67-
68-
demoProcessGroup.AddProcess(Path.Combine("Sales", "Sales.dll"));
69-
}
70-
71-
public void ScaleInSales()
72-
{
73-
if (disposed)
74-
{
75-
return;
76-
}
77-
78-
demoProcessGroup.KillProcess(Path.Combine("Sales", "Sales.dll"));
79-
}
80-
81-
public void ClientUI()
82-
{
83-
if (disposed)
84-
{
85-
return;
86-
}
87-
88-
demoProcessGroup.AddProcess(Path.Combine("ClientUI", "ClientUI.dll"));
89-
}
90-
91-
readonly ProcessGroup demoProcessGroup;
92-
private bool disposed;
1+
namespace MonitoringDemo;
2+
3+
sealed class DemoLauncher : IDisposable
4+
{
5+
public DemoLauncher()
6+
{
7+
demoProcessGroup = new ProcessGroup("Particular.MonitoringDemo");
8+
9+
File.WriteAllText(@".\Marker.sln", string.Empty);
10+
}
11+
12+
public void Dispose()
13+
{
14+
disposed = true;
15+
16+
demoProcessGroup.Dispose();
17+
18+
File.Delete(@".\Marker.sln");
19+
20+
Console.WriteLine("Removing Transport Files");
21+
DirectoryEx.Delete(".learningtransport");
22+
23+
Console.WriteLine("Deleting log folders");
24+
DirectoryEx.Delete(".logs");
25+
26+
Console.WriteLine("Deleting db folders");
27+
DirectoryEx.ForceDeleteReadonly(".db");
28+
DirectoryEx.ForceDeleteReadonly(".audit-db");
29+
}
30+
31+
public void Platform()
32+
{
33+
if (disposed)
34+
{
35+
return;
36+
}
37+
38+
demoProcessGroup.AddProcess(Path.Combine("PlatformLauncher", "PlatformLauncher.dll"));
39+
}
40+
41+
public void Billing()
42+
{
43+
if (disposed)
44+
{
45+
return;
46+
}
47+
48+
demoProcessGroup.AddProcess(Path.Combine("Billing", "Billing.dll"));
49+
}
50+
51+
public void Shipping()
52+
{
53+
if (disposed)
54+
{
55+
return;
56+
}
57+
58+
demoProcessGroup.AddProcess(Path.Combine("Shipping", "Shipping.dll"));
59+
}
60+
61+
public void ScaleOutSales()
62+
{
63+
if (disposed)
64+
{
65+
return;
66+
}
67+
68+
demoProcessGroup.AddProcess(Path.Combine("Sales", "Sales.dll"));
69+
}
70+
71+
public void ScaleInSales()
72+
{
73+
if (disposed)
74+
{
75+
return;
76+
}
77+
78+
demoProcessGroup.KillProcess(Path.Combine("Sales", "Sales.dll"));
79+
}
80+
81+
public void ClientUI()
82+
{
83+
if (disposed)
84+
{
85+
return;
86+
}
87+
88+
demoProcessGroup.AddProcess(Path.Combine("ClientUI", "ClientUI.dll"));
89+
}
90+
91+
readonly ProcessGroup demoProcessGroup;
92+
private bool disposed;
9393
}

0 commit comments

Comments
 (0)