Skip to content

Commit c4547a6

Browse files
committed
cleanup: run dotnet-format on samples
1 parent 0309d1c commit c4547a6

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

docs/samples/dependency-injection/custom/Program.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System;
2-
using Microsoft.Extensions.DependencyInjection;
32
using McMaster.Extensions.CommandLineUtils;
3+
using Microsoft.Extensions.DependencyInjection;
44

55
namespace CustomServices
66
{
7-
#region Program
7+
#region Program
88
[Command(Name = "di", Description = "Dependency Injection sample project")]
99
[HelpOption]
1010
class Program
@@ -35,16 +35,16 @@ private void OnExecute()
3535
_myService.Invoke();
3636
}
3737
}
38-
#endregion
38+
#endregion
3939

40-
#region IMyService
40+
#region IMyService
4141
interface IMyService
4242
{
4343
void Invoke();
4444
}
45-
#endregion
45+
#endregion
4646

47-
#region MyServiceImplementation
47+
#region MyServiceImplementation
4848
class MyServiceImplementation : IMyService
4949
{
5050
private readonly IConsole _console;
@@ -59,5 +59,5 @@ public void Invoke()
5959
_console.WriteLine("Hello dependency injection!");
6060
}
6161
}
62-
#endregion
62+
#endregion
6363
}

docs/samples/dependency-injection/generic-host/Program.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace CustomServices
1111
{
12-
#region Program
12+
#region Program
1313
[Command(Name = "di", Description = "Dependency Injection sample project")]
1414
class Program
1515
{
@@ -28,7 +28,8 @@ public static async Task<int> Main(string[] args)
2828
{
2929
builder.AddConsole();
3030
})
31-
.ConfigureServices((context, services) => {
31+
.ConfigureServices((context, services) =>
32+
{
3233
services.AddSingleton<IGreeter, Greeter>()
3334
.AddSingleton<IConsole>(PhysicalConsole.Singleton);
3435
})
@@ -51,16 +52,16 @@ private void OnExecute()
5152
_greeter.Greet(Name, Language);
5253
}
5354
}
54-
#endregion
55+
#endregion
5556

56-
#region IGreeter
57+
#region IGreeter
5758
interface IGreeter
5859
{
5960
void Greet(string name, string language);
6061
}
61-
#endregion
62+
#endregion
6263

63-
#region Greeter
64+
#region Greeter
6465
class Greeter : IGreeter
6566
{
6667
private readonly IConsole _console;
@@ -87,5 +88,5 @@ public void Greet(string name, string language = "english")
8788
_console.WriteLine(greeting, name);
8889
}
8990
}
90-
#endregion
91+
#endregion
9192
}

docs/samples/dependency-injection/standard/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace StandardServices
99
class Program
1010
{
1111
private readonly IConsole _console;
12-
12+
1313
static Task<int> Main(string[] args) => CommandLineApplication.ExecuteAsync<Program>(args);
1414

1515
public Program(IConsole console)

0 commit comments

Comments
 (0)