Skip to content

Commit

Permalink
Improved class diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed May 13, 2024
1 parent e6a8dcb commit 2186f21
Show file tree
Hide file tree
Showing 73 changed files with 134 additions and 133 deletions.
4 changes: 2 additions & 2 deletions readme/a-few-partial-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ classDiagram
+ object Resolve(Type type)
+ object Resolve(Type type, object? tag)
}
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency)
}
Expand Down
4 changes: 2 additions & 2 deletions readme/accumulators.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ classDiagram
class ValueTupleᐸIServiceˏMyAccumulatorᐳ {
+ValueTuple(IService item1, MyAccumulator item2)
}
AbcDependency --|> IDependency :
AbcDependency --|> IDependency
class AbcDependency {
+AbcDependency()
}
XyzDependency --|> IDependency : typeof(Pure.DI.UsageTests.Advanced.AccumulatorScenario.XyzDependency)
class XyzDependency {
+XyzDependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency1, IDependency dependency2, IDependency dependency3)
}
Expand Down
4 changes: 2 additions & 2 deletions readme/advanced-interception.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ classDiagram
<<partial>>
+IService Root
}
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency)
}
Expand Down
4 changes: 2 additions & 2 deletions readme/arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ classDiagram
}
class Int32
class String
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency(Int32 id)
}
Service --|> IService :
Service --|> IService
class Service {
+Service(String name, IDependency dependency)
}
Expand Down
4 changes: 2 additions & 2 deletions readme/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ classDiagram
+ object Resolve(Type type)
+ object Resolve(Type type, object? tag)
}
AbcDependency --|> IDependency :
AbcDependency --|> IDependency
class AbcDependency {
+AbcDependency()
}
XyzDependency --|> IDependency : 2
class XyzDependency {
+XyzDependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(ArrayᐸIDependencyᐳ dependencies)
}
Expand Down
6 changes: 3 additions & 3 deletions readme/async-disposable-scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ classDiagram
class Program {
+Program(FuncᐸSessionᐳ sessionFactory)
}
Dependency --|> IDependency :
Dependency --|> IAsyncDisposable :
Dependency --|> IDependency
Dependency --|> IAsyncDisposable
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency)
}
Expand Down
6 changes: 3 additions & 3 deletions readme/async-disposable-singleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ classDiagram
}
Composition --|> IDisposable
Composition --|> IAsyncDisposable
Dependency --|> IDependency :
Dependency --|> IAsyncDisposable :
Dependency --|> IDependency
Dependency --|> IAsyncDisposable
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency)
}
Expand Down
4 changes: 2 additions & 2 deletions readme/async-enumerable.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@ classDiagram
+ object Resolve(Type type)
+ object Resolve(Type type, object? tag)
}
AbcDependency --|> IDependency :
AbcDependency --|> IDependency
class AbcDependency {
+AbcDependency()
}
XyzDependency --|> IDependency : 2
class XyzDependency {
+XyzDependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IAsyncEnumerableᐸIDependencyᐳ dependencies)
}
Expand Down
2 changes: 1 addition & 1 deletion readme/auto-scoped.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ classDiagram
+Service(IDependency dependency)
}
class IService
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
Expand Down
2 changes: 1 addition & 1 deletion readme/check-for-a-root.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ classDiagram
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service()
+IDependency Dependency
Expand Down
4 changes: 2 additions & 2 deletions readme/complex-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ classDiagram
class ProgramᐸStringᐳ {
+Program(IServiceᐸStringˏInt32ˏListᐸStringᐳˏDictionaryᐸStringˏInt32ᐳᐳ service)
}
ServiceᐸStringˏInt32ˏListᐸStringᐳˏDictionaryᐸStringˏInt32ᐳᐳ --|> IServiceᐸStringˏInt32ˏListᐸStringᐳˏDictionaryᐸStringˏInt32ᐳᐳ :
ServiceᐸStringˏInt32ˏListᐸStringᐳˏDictionaryᐸStringˏInt32ᐳᐳ --|> IServiceᐸStringˏInt32ˏListᐸStringᐳˏDictionaryᐸStringˏInt32ᐳᐳ
class ServiceᐸStringˏInt32ˏListᐸStringᐳˏDictionaryᐸStringˏInt32ᐳᐳ {
+Service(IDependencyᐸStringᐳ dependency1, IDependencyᐸInt32ᐳ dependency2)
}
DependencyᐸStringᐳ --|> IDependencyᐸStringᐳ :
DependencyᐸStringᐳ --|> IDependencyᐸStringᐳ
class DependencyᐸStringᐳ {
+Dependency()
}
Expand Down
4 changes: 2 additions & 2 deletions readme/composition-root-kinds.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ classDiagram
+ object Resolve(Type type)
+ object Resolve(Type type, object? tag)
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency)
}
OtherService --|> IService : "Other"
class OtherService {
+OtherService()
}
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
Expand Down
4 changes: 2 additions & 2 deletions readme/composition-roots.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ classDiagram
+ object Resolve(Type type)
+ object Resolve(Type type, object? tag)
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency)
}
OtherService --|> IService : "Other"
class OtherService {
+OtherService()
}
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
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 @@ -204,7 +204,7 @@ classDiagram
+ object Resolve(Type type, object? tag)
}
class String
Service --|> IService :
Service --|> IService
class Service {
~Service(String name)
}
Expand Down
2 changes: 1 addition & 1 deletion readme/custom-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ classDiagram
}
class String
class Int32
Person --|> IPerson :
Person --|> IPerson
class Person {
+Person(String name)
~Object Id
Expand Down
2 changes: 1 addition & 1 deletion readme/decorator.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ classDiagram
class Service {
+Service()
}
GreetingService --|> IService :
GreetingService --|> IService
class GreetingService {
+GreetingService(IService baseService)
}
Expand Down
4 changes: 2 additions & 2 deletions readme/default-lifetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ classDiagram
<<partial>>
+IService Root
}
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency1, IDependency dependency2)
}
Expand Down
4 changes: 2 additions & 2 deletions readme/default-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ classDiagram
<<partial>>
+IService Root
}
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(String name)
+IDependency 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 @@ -378,11 +378,11 @@ classDiagram
class Program {
+Program(IService service)
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency)
}
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
Expand Down
4 changes: 2 additions & 2 deletions readme/disposable-singleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ classDiagram
+IService Root
}
Composition --|> IDisposable
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency)
}
Expand Down
8 changes: 4 additions & 4 deletions readme/enumerable-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,25 +244,25 @@ classDiagram
+ object Resolve(Type type)
+ object Resolve(Type type, object? tag)
}
ServiceᐸInt32ᐳ --|> IServiceᐸInt32ᐳ :
ServiceᐸInt32ᐳ --|> IServiceᐸInt32ᐳ
class ServiceᐸInt32ᐳ {
+Service(IEnumerableᐸIDependencyᐸInt32ᐳᐳ dependencies)
}
ServiceᐸStringᐳ --|> IServiceᐸStringᐳ :
ServiceᐸStringᐳ --|> IServiceᐸStringᐳ
class ServiceᐸStringᐳ {
+Service(IEnumerableᐸIDependencyᐸStringᐳᐳ dependencies)
}
class IEnumerableᐸIDependencyᐸInt32ᐳᐳ
class IEnumerableᐸIDependencyᐸStringᐳᐳ
AbcDependencyᐸInt32ᐳ --|> IDependencyᐸInt32ᐳ :
AbcDependencyᐸInt32ᐳ --|> IDependencyᐸInt32ᐳ
class AbcDependencyᐸInt32ᐳ {
+AbcDependency()
}
XyzDependencyᐸInt32ᐳ --|> IDependencyᐸInt32ᐳ : "Xyz"
class XyzDependencyᐸInt32ᐳ {
+XyzDependency()
}
AbcDependencyᐸStringᐳ --|> IDependencyᐸStringᐳ :
AbcDependencyᐸStringᐳ --|> IDependencyᐸStringᐳ
class AbcDependencyᐸStringᐳ {
+AbcDependency()
}
Expand Down
4 changes: 2 additions & 2 deletions readme/enumerable.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,15 @@ classDiagram
+ object Resolve(Type type)
+ object Resolve(Type type, object? tag)
}
AbcDependency --|> IDependency :
AbcDependency --|> IDependency
class AbcDependency {
+AbcDependency()
}
XyzDependency --|> IDependency : 2
class XyzDependency {
+XyzDependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(IEnumerableᐸIDependencyᐳ dependencies)
}
Expand Down
2 changes: 1 addition & 1 deletion readme/factory.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ classDiagram
+Dependency(DateTimeOffset time)
}
class DateTimeOffset
Service --|> IService :
Service --|> IService
class Service {
+Service(IDependency dependency)
}
Expand Down
4 changes: 2 additions & 2 deletions readme/field-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ classDiagram
<<partial>>
+IService Root
}
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service()
~IDependency DependencyVal
Expand Down
4 changes: 2 additions & 2 deletions readme/func-with-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ classDiagram
}
class Int32
class FuncᐸInt32ˏIDependencyᐳ
Clock --|> IClock :
Clock --|> IClock
class Clock {
+Clock()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(FuncᐸInt32ˏIDependencyᐳ dependencyFactory)
}
Expand Down
2 changes: 1 addition & 1 deletion readme/func-with-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ classDiagram
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(FuncᐸIDependencyᐳ dependencyFactory)
}
Expand Down
4 changes: 2 additions & 2 deletions readme/func.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ classDiagram
+ object Resolve(Type type)
+ object Resolve(Type type, object? tag)
}
Dependency --|> IDependency :
Dependency --|> IDependency
class Dependency {
+Dependency()
}
Service --|> IService :
Service --|> IService
class Service {
+Service(FuncᐸIDependencyᐳ dependencyFactory)
}
Expand Down
Loading

0 comments on commit 2186f21

Please sign in to comment.