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
Refactored Database provider model to give standard way of doing providers going forward
Moved extensible services (database, file system) into a Providers folder
Renamed bootstrap settings and connectionstringprovider to be less ambiguous.
--HG--
branch : azure-storage
@@ -84,9 +88,12 @@ public void ComponentsThatShouldBeSingletons()
84
88
85
89
// The following are singletons just because there's no need to have more than one - if you have a good
86
90
// reason feel free to change
87
-
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.");
88
-
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.");
89
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