Pieter-Jan Briers
1631d93e41
Remove AggressiveOptimization attributes.
...
This isn't a magic "make code go fast" button, none of these usages were correct.
2023-06-25 09:33:10 +02:00
Pieter-Jan Briers
a0b067a062
Add command to dump injector cache list.
...
To allow me to figure out how big it is.
2022-12-21 00:03:22 +01:00
Pieter-Jan Briers
d1eb70da07
DependencyCollection is now thread safe.
...
We can now safely run stuff in parallel with registrations and all that goodness.
2022-12-17 00:38:34 +01:00
Leon Friedrich
c0f384ac96
Add IDependencyCollection.FromParent() ( #3541 )
2022-12-02 10:19:51 +11:00
Pieter-Jan Briers
2f22de4eff
Make IoC Register have where TInterface : class
2022-11-12 12:11:19 +01:00
Vera Aguilera Puerto
d404494018
ViewVariables Exorcism Part 1: Of paths and commands ( #3214 )
2022-10-14 19:03:44 +02:00
Pieter-Jan Briers
de4d255841
Analyzer to enforce classes to be either [Virtual], abstract, or sealed. ( #2469 )
...
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com >
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com >
2022-02-05 19:31:58 +01:00
Acruid
97f5131ce0
Fixed bug where _pendingResolves was not getting cleared. ( #2328 )
...
Added an option to defer field DI for RegisteredInstances until BuildGraph is called. This lets you register instances that contain dependency fields that are not instantiated yet.
2021-12-12 16:12:52 -08:00
Acruid
424e0768c8
Fixed some code that I forgot to change to help IoC instantiate protected constructors.
2021-11-17 03:10:12 -08:00
Acruid
e1b9327ec0
Misc Engine Tweaks ( #2238 )
2021-11-17 09:39:18 +01:00
Vera Aguilera Puerto
6cf5021efa
Add Resolves to IoCManager and EntitySystemManager ( #2231 )
2021-11-14 19:41:34 +01:00
Paul Ritter
8c1e075c91
EntitySystem DependencyCollection & EntitySystem dependencies ( #1890 )
...
* started work
* tests
* namespace
* working
* thonk
Co-authored-by: Paul <ritter.paul1+git@googlemail.com >
Co-authored-by: Vera Aguilera Puerto <gradientvera@outlook.com >
2021-07-26 12:10:03 +02:00
Acruid
e5fd4f5700
DependencyCollection Children ( #1833 )
...
Adds a new register function for registering a simple Type without an interface.
2021-06-21 02:15:23 +02:00
Acruid
f9074811f9
Adds constructor injection to the IoCManager & DependencyCollection.
2021-03-25 01:16:08 -07:00
Acruid
bded7ad228
You can now provide a factory delegate to IoC register calls.
2021-02-06 23:00:08 -08:00
DrSmugleaf
b8e5b47e7a
Use 'new' expression in places where the type is evident for the engine ( #1415 )
...
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com >
2020-11-26 00:16:55 +01:00
Pieter-Jan Briers
362b7804d9
Fix issues with .NET 5.
2020-11-11 00:46:35 +01:00
Pieter-Jan Briers
8f590a7ba9
DependencyCollection.RegisterInstance no longer caches injectors.
...
Small optimization.
2020-07-09 02:55:04 +02:00
Pieter-Jan Briers
41f1dd3fa0
Hopefully fix parallel game states
2020-06-24 22:55:59 +02:00
Pieter-Jan Briers
ec0f4b35f7
Enable nullable reference types on Robust.Shared and fix all warnings. ( #1109 )
2020-06-08 01:13:01 +02:00
Pieter-Jan Briers
73a34fc53a
Use DynamicMethod for dependency injection. ( #864 )
...
* Use DynamicMethod for dependency injection.
Should be way faster to initialize types and also have no allocation overhead
* Cleanup, don't make injectors for types without dependencies
* Fix Framework, maybe?
* Test the new system explicitly.
2019-09-09 01:43:22 +02:00
Pieter-Jan Briers
85a4375905
Various performance optimizations.
2019-08-01 00:10:20 +02:00
Pieter-Jan Briers
5077b5ec4e
Do not hide exceptions thrown in IoC service Dispose.
2019-05-08 22:59:45 +02:00
Silver
25926a17b7
Renames SS14.* to Robust.* ( #793 )
...
RobustToolbox projects should be named Robust.*
This PR changes the RobustToolbox projects from SS14.* to Robust.*
Updates SS14.* prefixes/namespaces to Robust.*
Updates SpaceStation14.sln to RobustToolbox.sln
Updates MSBUILD/SS14.* to MSBUILD/Robust.*
Updates CSProject and MSBuild references for the above
Updates git_helper.py
Removes Runserver and Runclient as they are unusable
2019-04-15 20:24:59 -06:00