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
/// <param name="container">An existing container to make the registrations in.</param>
174
174
[SuppressMessage("Microsoft.Design","CA1011:ConsiderPassingBaseTypesAsParameters",Justification="You can't update any arbitrary context, only containers.")]
175
+
[Obsolete("Containers should generally be considered immutable. Register all of your dependencies before building/resolving. If you need to change the contents of a container, you technically should rebuild the container. This method may be removed in a future major release.")]
175
176
publicvoidUpdate(IContainercontainer)
176
177
{
177
178
Update(container,ContainerBuildOptions.None);
@@ -188,6 +189,7 @@ public void Update(IContainer container)
188
189
/// <param name="container">An existing container to make the registrations in.</param>
189
190
/// <param name="options">Options that influence the way the container is updated.</param>
190
191
[SuppressMessage("Microsoft.Design","CA1011:ConsiderPassingBaseTypesAsParameters",Justification="You can't update any arbitrary context, only containers.")]
192
+
[Obsolete("Containers should generally be considered immutable. Register all of your dependencies before building/resolving. If you need to change the contents of a container, you technically should rebuild the container. This method may be removed in a future major release.")]
// Issue #462: The ContainerBuildOptions parameter is added here as an overload
@@ -208,7 +210,23 @@ public void Update(IContainer container, ContainerBuildOptions options)
208
210
/// - this prevents ownership issues for provided instances.
209
211
/// </remarks>
210
212
/// <param name="componentRegistry">An existing registry to make the registrations in.</param>
213
+
[Obsolete("Containers should generally be considered immutable. Register all of your dependencies before building/resolving. If you need to change the contents of a container, you technically should rebuild the container. This method may be removed in a future major release.")]
0 commit comments