File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
docs/guides/implementation-guides Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,10 @@ dotnet add package Microsoft.Extensions.DependencyInjection
72
72
The following code is creating an extension method for `IServiceCollection ` that will register services to our service collection and make them available for injection .
73
73
74
74
```csharp
75
- public static class ServiceCollectionExtensions {
76
- public static void AddCommonServices (this IServiceCollection collection ) {
75
+ public static class ServiceCollectionExtensions
76
+ {
77
+ public static void AddCommonServices (this IServiceCollection collection )
78
+ {
77
79
collection .AddSingleton <IRepository , Repository >();
78
80
collection .AddTransient <BusinessService >();
79
81
collection .AddTransient <MainViewModel >();
You can’t perform that action at this time.
0 commit comments