Skip to content

Commit

Permalink
Adds a protected access modifier for roots
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Dec 6, 2024
1 parent 4c4c332 commit f08efaa
Show file tree
Hide file tree
Showing 107 changed files with 174 additions and 140 deletions.
2 changes: 1 addition & 1 deletion readme/ArrayDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ classDiagram
namespace Pure.DI.Benchmarks.Benchmarks {
class Array {
<<partial>>
+CompositionRoot TestPureDIByCR()
+ CompositionRoot TestPureDIByCR()
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/EnumDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ classDiagram
namespace Pure.DI.Benchmarks.Benchmarks {
class Enum {
<<partial>>
+CompositionRoot TestPureDIByCR()
+ CompositionRoot TestPureDIByCR()
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/FuncDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classDiagram
namespace Pure.DI.Benchmarks.Benchmarks {
class Func {
<<partial>>
+CompositionRoot TestPureDIByCR()
+ CompositionRoot TestPureDIByCR()
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/SingletonDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classDiagram
namespace Pure.DI.Benchmarks.Benchmarks {
class Singleton {
<<partial>>
+CompositionRoot TestPureDIByCR()
+ CompositionRoot TestPureDIByCR()
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/TransientDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classDiagram
namespace Pure.DI.Benchmarks.Benchmarks {
class Transient {
<<partial>>
+CompositionRoot TestPureDIByCR()
+ CompositionRoot TestPureDIByCR()
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/a-few-partial-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ classDiagram
namespace Pure.DI.UsageTests.Advanced.SeveralPartialClassesScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/accumulators.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ classDiagram
}
class Composition {
<<partial>>
+ValueTupleᐸIServiceˏMyAccumulatorᐳ Root
+ ValueTupleᐸIServiceˏMyAccumulatorᐳ Root
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/advanced-interception.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ classDiagram
namespace Pure.DI.UsageTests.Interception.AdvancedInterceptionScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class Dependency {
+Dependency()
Expand Down
2 changes: 1 addition & 1 deletion readme/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ classDiagram
}
class Composition {
<<partial>>
+IService Root
+ IService Root
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
4 changes: 2 additions & 2 deletions readme/async-disposable-scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ classDiagram
namespace Pure.DI.UsageTests.Lifetimes.AsyncDisposableScopeScenario {
class Composition {
<<partial>>
+Program ProgramRoot
+IService SessionRoot
+ Program ProgramRoot
+ IService SessionRoot
}
class Dependency {
+Dependency()
Expand Down
2 changes: 1 addition & 1 deletion readme/async-disposable-singleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ classDiagram
namespace Pure.DI.UsageTests.Lifetimes.AsyncDisposableSingletonScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class Dependency {
+Dependency()
Expand Down
2 changes: 1 addition & 1 deletion readme/async-enumerable.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ classDiagram
}
class Composition {
<<partial>>
+IService Root
+ IService Root
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/async-root.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.AsyncRootScenario {
class Composition {
<<partial>>
+TaskᐸIServiceᐳ GetMyServiceAsync(System.Threading.CancellationToken cancellationToken)
+ TaskᐸIServiceᐳ GetMyServiceAsync(System.Threading.CancellationToken cancellationToken)
}
class Dependency {
+Dependency()
Expand Down
2 changes: 1 addition & 1 deletion readme/auto-bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.AutoBindingsScenario {
class Composition {
<<partial>>
+Service MyService
+ Service MyService
}
class Dependency {
+Dependency()
Expand Down
4 changes: 2 additions & 2 deletions readme/auto-scoped.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ classDiagram
namespace Pure.DI.UsageTests.Lifetimes.AutoScopedScenario {
class Composition {
<<partial>>
+Program ProgramRoot
+Service SessionRoot
+ Program ProgramRoot
- Service SessionRoot
}
class Dependency {
+Dependency()
Expand Down
2 changes: 1 addition & 1 deletion readme/bind-attribute-for-a-generic-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.BindAttributeForGenericTypeScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class Facade {
+Facade()
Expand Down
2 changes: 1 addition & 1 deletion readme/bind-attribute-with-lifetime-and-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.BindAttributeWithLifetimeAndTagScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class Facade {
+Facade()
Expand Down
2 changes: 1 addition & 1 deletion readme/bind-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.BindAttributeScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class Facade {
+Facade()
Expand Down
2 changes: 1 addition & 1 deletion readme/build-up-of-an-existing-generic-object.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.GenericBuildUpScenario {
class Composition {
<<partial>>
+IServiceᐸGuidᐳ GetMyService(string name)
+ IServiceᐸGuidᐳ GetMyService(string name)
}
class DependencyᐸGuidᐳ {
+String Name
Expand Down
2 changes: 1 addition & 1 deletion readme/build-up-of-an-existing-object.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.BuildUpScenario {
class Composition {
<<partial>>
+IService GetMyService(string name)
+ IService GetMyService(string name)
}
class Dependency {
+String Name
Expand Down
4 changes: 2 additions & 2 deletions readme/check-for-a-root.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ classDiagram
namespace Pure.DI.UsageTests.Hints.CheckForRootScenario {
class Composition {
<<partial>>
+IService Root
-IDependency _
+ IService Root
- IDependency _
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/class-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.ClassArgumentsScenario {
class Composition {
<<partial>>
+IService MyService
+ IService MyService
}
class Dependency {
+Dependency(Int32 id, String name)
Expand Down
2 changes: 1 addition & 1 deletion readme/complex-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ classDiagram
namespace Pure.DI.UsageTests.Generics.ComplexGenericsScenario {
class Composition {
<<partial>>
+ProgramᐸT1ᐳ GetRootᐸT1ᐳ(T1 depArg)
+ ProgramᐸT1ᐳ GetRootᐸT1ᐳ(T1 depArg)
}
class DependencyStructᐸInt32ᐳ {
<<struct>>
Expand Down
6 changes: 3 additions & 3 deletions readme/composition-root-kinds.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ classDiagram
namespace Pure.DI.UsageTests.Advanced.CompositionRootKindsScenario {
class Composition {
<<partial>>
+IDependency Dependency
+IService GetOtherService()
+IService GetRoot()
~ IDependency Dependency
+ IService GetOtherService()
- IService GetRoot()
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
6 changes: 3 additions & 3 deletions readme/composition-roots.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.CompositionRootsScenario {
class Composition {
<<partial>>
+IService MyOtherService
+IService MyService
-IDependency _
+ IService MyOtherService
+ IService MyService
- IDependency _
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/constructor-ordinal-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ classDiagram
namespace Pure.DI.UsageTests.Attributes.ConstructorOrdinalAttributeScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class IService {
<<interface>>
Expand Down
2 changes: 1 addition & 1 deletion readme/custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ classDiagram
}
class PersonComposition {
<<partial>>
+IPerson Person
+ IPerson Person
}
}
namespace System {
Expand Down
2 changes: 1 addition & 1 deletion readme/custom-generic-argument-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ classDiagram
namespace Pure.DI.UsageTests.Attributes.CustomGenericArgumentAttributeScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/custom-generic-argument.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ classDiagram
namespace Pure.DI.UsageTests.Generics.CustomGenericArgumentScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/custom-universal-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ classDiagram
}
class PersonComposition {
<<partial>>
+IPerson Person
+ IPerson Person
}
}
namespace System {
Expand Down
2 changes: 1 addition & 1 deletion readme/decorator.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ classDiagram
namespace Pure.DI.UsageTests.Interception.DecoratorScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class GreetingService {
+GreetingService(IService baseService)
Expand Down
2 changes: 1 addition & 1 deletion readme/default-lifetime-for-a-type-and-a-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ classDiagram
namespace Pure.DI.UsageTests.Lifetimes.DefaultLifetimeForTypeAndTagScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class Dependency {
+Dependency()
Expand Down
2 changes: 1 addition & 1 deletion readme/default-lifetime-for-a-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ classDiagram
namespace Pure.DI.UsageTests.Lifetimes.DefaultLifetimeForTypeScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class Dependency {
+Dependency()
Expand Down
2 changes: 1 addition & 1 deletion readme/default-lifetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ classDiagram
namespace Pure.DI.UsageTests.Lifetimes.DefaultLifetimeScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class Dependency {
+Dependency()
Expand Down
2 changes: 1 addition & 1 deletion readme/default-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.DefaultValuesScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class Dependency {
+Dependency()
Expand Down
4 changes: 2 additions & 2 deletions readme/dependent-compositions.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ classDiagram
}
class OtherComposition {
<<partial>>
+Program Program
+IService Root
+ Program Program
+ IService Root
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/disposable-singleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ classDiagram
namespace Pure.DI.UsageTests.Lifetimes.DisposableSingletonScenario {
class Composition {
<<partial>>
+IService Root
+ IService Root
}
class Dependency {
+Dependency()
Expand Down
4 changes: 2 additions & 2 deletions readme/enumerable-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ classDiagram
}
class Composition {
<<partial>>
+IServiceᐸInt32ᐳ IntRoot
+IServiceᐸStringᐳ StringRoot
+ IServiceᐸInt32ᐳ IntRoot
+ IServiceᐸStringᐳ StringRoot
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/enumerable.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ classDiagram
}
class Composition {
<<partial>>
+IService Root
+ IService Root
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
2 changes: 1 addition & 1 deletion readme/factory.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.FactoryScenario {
class Composition {
<<partial>>
+IService GetMyService(bool isFake)
+ IService GetMyService(bool isFake)
}
class Dependency {
+Dependency(DateTimeOffset time)
Expand Down
2 changes: 1 addition & 1 deletion readme/field-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ classDiagram
namespace Pure.DI.UsageTests.Basics.FieldInjectionScenario {
class Composition {
<<partial>>
+IService MyService
+ IService MyService
}
class Dependency {
+Dependency()
Expand Down
2 changes: 1 addition & 1 deletion readme/func-with-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ classDiagram
}
class Composition {
<<partial>>
+IService Root
+ IService Root
+ T ResolveᐸTᐳ()
+ T ResolveᐸTᐳ(object? tag)
+ object Resolve(Type type)
Expand Down
Loading

0 comments on commit f08efaa

Please sign in to comment.