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
@@ -83,9 +88,12 @@ public void ComponentsThatShouldBeSingletons()
83
88
84
89
// The following are singletons just because there's no need to have more than one - if you have a good
85
90
// reason feel free to change
86
-
IsSingleton<IConnectionStringProvider>("This component uses the bootstrap settings to store the connection string. Since the bootstrap settings are opened/closed on the fly, there only needs to be one instance of this type.");
87
-
IsSingleton<IBootstrapSettings>("This component opens/closes the XML file on the fly; there's no need to have more than one.");
91
+
IsSingleton<IConnectionStringSettings>("This component uses the bootstrap settings to store the connection string. Since the bootstrap settings are opened/closed on the fly, there only needs to be one instance of this type.");
92
+
IsSingleton<IConfigSettings>("This component opens/closes the XML file on the fly; there's no need to have more than one.");
88
93
IsSingleton<IMimeTypeLookup>("It just calls the registry/a static list - no need for more than one");
94
+
95
+
IsSingleton<IProviderInfo<IDatabaseProvider>>("This type extends the contains, no need to create multiple times");
96
+
IsSingleton<IProviderInfo<IFileRepository>>("This type extends the contains, no need to create multiple times");
0 commit comments