Skip to content

Commit 62a0b3a

Browse files
Update README.md
1 parent 3380b8f commit 62a0b3a

26 files changed

+273
-45
lines changed

.run/AvaloniaSimpleApp.run.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="AvaloniaSimpleApp" type="DotNetProject" factoryName=".NET Project" folderName="Examples">
3+
<option name="EXE_PATH" value="$PROJECT_DIR$/samples/AvaloniaSimpleApp/bin/Debug/net9.0/AvaloniaSimpleApp.exe" />
4+
<option name="PROGRAM_PARAMETERS" value="" />
5+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/samples/AvaloniaSimpleApp/bin/Debug/net9.0" />
6+
<option name="PASS_PARENT_ENVS" value="1" />
7+
<option name="USE_EXTERNAL_CONSOLE" value="0" />
8+
<option name="USE_MONO" value="0" />
9+
<option name="RUNTIME_ARGUMENTS" value="" />
10+
<option name="PROJECT_PATH" value="$PROJECT_DIR$/samples/AvaloniaSimpleApp/AvaloniaSimpleApp.csproj" />
11+
<option name="PROJECT_EXE_PATH_TRACKING" value="1" />
12+
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />
13+
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="1" />
14+
<option name="PROJECT_KIND" value="DotNetCore" />
15+
<option name="PROJECT_TFM" value="net9.0" />
16+
<method v="2">
17+
<option name="Build" />
18+
</method>
19+
</configuration>
20+
</component>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ dotnet run
262262
- [Complex generic root arguments](readme/complex-generic-root-arguments.md)
263263
- [Generic builder](readme/generic-builder.md)
264264
- [Generic builders](readme/generic-builders.md)
265+
- [Generic roots](readme/generic-roots.md)
265266
### Attributes
266267
- [Constructor ordinal attribute](readme/constructor-ordinal-attribute.md)
267268
- [Dependency attribute](readme/dependency-attribute.md)

readme/WebAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal partial class Composition: ServiceProviderFactory<Composition>
2020
// Use the DI setup from the base class
2121
.DependsOn(Base)
2222
.Bind().As(Singleton).To<WeatherForecastService>()
23-
// Provides controllers as roots
23+
// Registers controllers as roots
2424
.Roots<ControllerBase>();
2525
}
2626
```

readme/WebAPIPageTemplate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal partial class Composition: ServiceProviderFactory<Composition>
2020
// Use the DI setup from the base class
2121
.DependsOn(Base)
2222
.Bind().As(Singleton).To<WeatherForecastService>()
23-
// Provides controllers as roots
23+
// Registers controllers as roots
2424
.Roots<ControllerBase>();
2525
}
2626
```

readme/WebApp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal partial class Composition: ServiceProviderFactory<Composition>
2020
// Use the DI setup from the base class
2121
.DependsOn(Base)
2222
.Bind().As(Singleton).To<WeatherForecastService>()
23-
// Provides controllers as roots
23+
// Registers controllers as roots
2424
.Roots<Controller>();
2525
}
2626
```

readme/WebAppPageTemplate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal partial class Composition: ServiceProviderFactory<Composition>
2020
// Use the DI setup from the base class
2121
.DependsOn(Base)
2222
.Bind().As(Singleton).To<WeatherForecastService>()
23-
// Provides controllers as roots
23+
// Registers controllers as roots
2424
.Roots<Controller>();
2525
}
2626
```

readme/async-disposable-scope.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ partial class Composition: IDisposable, IAsyncDisposable
172172
() =>
173173
{
174174
Composition transientComposition3 = this;
175-
Session localValue98 = new Session(transientComposition3);
176-
return localValue98;
175+
Session localValue99 = new Session(transientComposition3);
176+
return localValue99;
177177
});
178178
return new Program(perBlockFunc1);
179179
}

readme/auto-scoped.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ partial class Composition
129129
{
130130
Composition transientComposition3 = this;
131131
IService transientIService2;
132-
Composition localBaseComposition100 = transientComposition3;
132+
Composition localBaseComposition101 = transientComposition3;
133133
// Creates a session
134-
var localSession101 = new Composition(localBaseComposition100);
134+
var localSession102 = new Composition(localBaseComposition101);
135135
// Provides a root
136-
transientIService2 = localSession101.SessionRoot;
137-
IService localValue99 = transientIService2;
138-
return localValue99;
136+
transientIService2 = localSession102.SessionRoot;
137+
IService localValue100 = transientIService2;
138+
return localValue100;
139139
});
140140
return new Program(perBlockFunc1);
141141
}

readme/basic-unity-use-case.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ partial class Composition
130130
}
131131

132132
Clock transientClock0;
133-
Clock localBuildingInstance106 = buildingInstance;
134-
localBuildingInstance106.ClockService = _root._singletonClockService43;
135-
transientClock0 = localBuildingInstance106;
133+
Clock localBuildingInstance107 = buildingInstance;
134+
localBuildingInstance107.ClockService = _root._singletonClockService43;
135+
transientClock0 = localBuildingInstance107;
136136
return transientClock0;
137137
}
138138
}

readme/builders-with-a-name-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ record Service1: IService
5252

5353
record Service2 : IService
5454
{
55-
public Guid Id { get; private set; } = Guid.Empty;
55+
public Guid Id => Guid.Empty;
5656

5757
// The Dependency attribute specifies to perform an injection
5858
[Dependency]

0 commit comments

Comments
 (0)