You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-79
Original file line number
Diff line number
Diff line change
@@ -46,85 +46,6 @@ The following is supported:
46
46
**Not supported yet:**
47
47
- Events
48
48
49
-
## Lazy injection for IoC containers
50
-
51
-
A dynamic lazy proxy can be used for IoC containers to change the resolving behaviour.
52
-
53
-
Dependencies registered as lazy are created as dynamic proxy objects built in real time, but the real classes are resolved only after the first execution of proxy method or property.
54
-
55
-
Also dynamic lazy proxy allows injection of circular dependencies.
RegisterType | Clr | 4,137.7 us | 413.30 us | 273.37 us |
103
-
RegisterLazy | Clr | 20,674.2 us | 8,720.50 us | 5,768.07 us |
104
-
ColdResolveType | Clr | 46,964.2 us | 7,248.30 us | 4,794.30 us |
105
-
ColdResolveLazy | Clr | 45,114.7 us | 14,851.68 us | 9,823.47 us |
106
-
HotResolveType | Clr | 11,071.5 us | 537.94 us | 355.81 us |
107
-
HotResolveLazy | Clr | 459.6 us | 81.59 us | 53.97 us |
108
-
InvokeMethod | Clr | 360.1 us | 104.89 us | 69.38 us |
109
-
InvokeLazyMethodFirstTime | Clr | 16,164.2 us | 725.08 us | 479.60 us |
110
-
InvokeLazyMethodSecondTime | Clr | 315.4 us | 53.41 us | 35.33 us |
111
-
RegisterType | Core | 3,687.9 us | 395.56 us | 261.64 us |
112
-
RegisterLazy | Core | 17,750.2 us | 7,664.41 us | 5,069.54 us |
113
-
ColdResolveType | Core | 50,519.3 us | 2,217.58 us | 1,466.79 us |
114
-
ColdResolveLazy | Core | 46,829.4 us | 1,848.44 us | 1,222.63 us |
115
-
HotResolveType | Core | 10,911.2 us | 542.79 us | 359.02 us |
116
-
HotResolveLazy | Core | 471.4 us | 47.37 us | 31.34 us |
117
-
InvokeMethod | Core | 333.8 us | 23.26 us | 15.39 us |
118
-
InvokeLazyMethodFirstTime | Core | 16,226.2 us | 527.92 us | 349.18 us |
119
-
InvokeLazyMethodSecondTime | Core | 336.4 us | 68.45 us | 45.28 us |
120
-
121
-
// * Legends *
122
-
Mean : Arithmetic mean of all measurements
123
-
Error : Half of 99.9% confidence interval
124
-
StdDev : Standard deviation of all measurements
125
-
1 us : 1 Microsecond (0.000001 sec)
126
-
```
127
-
128
49
## License
129
50
130
51
This project is licensed under the Apache License, Version 2.0. - see the [LICENSE](https://github.com/servicetitan/lazy-proxy/blob/master/LICENSE) file for details.
0 commit comments