Skip to content
Permalink
Browse files

Obsoleted messages marked with error: true. Fixes #794.

  • Loading branch information
dotnetjunkie committed Jan 5, 2020
1 parent 4f19887 commit 7b502c7cae0d5d1aa1f192a5bce5036e6d984d13
@@ -34,8 +34,8 @@ public static class SimpleInjectorAspNetCoreMvcIntegrationExtensions
"—e.g. 'services.AddSimpleInjector(container, options => options.AddAspNetCore()." +
nameof(SimpleInjectorAspNetCoreBuilderMvcCoreExtensions.AddControllerActivation) + "());'. " +
"Please see https://simpleinjector.org/aspnetcore for more details. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static void RegisterMvcControllers(
this Container container, IApplicationBuilder applicationBuilder)
@@ -78,8 +78,8 @@ public static class SimpleInjectorAspNetCoreMvcIntegrationExtensions
"—e.g. 'services.AddSimpleInjector(container, options => options.AddAspNetCore()." +
nameof(SimpleInjectorAspNetCoreBuilderMvcCoreExtensions.AddViewComponentActivation) + "());'. " +
"Please see https://simpleinjector.org/aspnetcore for more details. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static void RegisterMvcViewComponents(
this Container container, IApplicationBuilder applicationBuilder)
@@ -121,8 +121,8 @@ public static class SimpleInjectorAspNetCoreMvcIntegrationExtensions
"—e.g. 'services.AddSimpleInjector(container, options => options.AddAspNetCore()." +
nameof(SimpleInjectorAspNetCoreBuilderMvcCoreExtensions.AddViewComponentActivation) + "());'. " +
"Please see https://simpleinjector.org/aspnetcore for more details. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static void RegisterMvcViewComponents(
this Container container, IViewComponentDescriptorProvider viewComponentDescriptorProvider)
@@ -41,8 +41,8 @@ public static class SimpleInjectorAspNetCoreMvcIntegrationExtensions
"'services.AddSimpleInjector(container, options => options.AddAspNetCore()." +
nameof(SimpleInjectorAspNetCoreBuilderMvcExtensions.AddTagHelperActivation) + "());'. " +
"Please see https://simpleinjector.org/aspnetcore for more details. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static void AddSimpleInjectorTagHelperActivation(
this IServiceCollection services,
@@ -84,8 +84,8 @@ public static class SimpleInjectorAspNetCoreMvcIntegrationExtensions
"'services.AddSimpleInjector(container, options => options.AddAspNetCore()." +
nameof(SimpleInjectorAspNetCoreBuilderMvcExtensions.AddPageModelActivation) + "());'. " +
"Please see https://simpleinjector.org/aspnetcore for more details. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static void RegisterPageModels(
this Container container, IApplicationBuilder applicationBuilder)
@@ -106,8 +106,8 @@ public static T GetRequiredRequestService<T>(this IApplicationBuilder builder)
[Obsolete("Please call services.AddSimpleInjector() instead. AddSimpleInjector can be called from " +
"within the ConfigureServices method of the Startup class. " +
"See https://simpleinjector.org/aspnetcore for more information. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
public static void EnableSimpleInjectorCrossWiring(
this IServiceCollection services, Container container)
{
@@ -130,8 +130,8 @@ public static T GetRequiredRequestService<T>(this IApplicationBuilder builder)
[Obsolete("Please call services.AddSimpleInjector(options => { options.CrossWire<TService>(); }) " +
"instead. AddSimpleInjector can be called from within the ConfigureServices method of the " +
"Startup class. See https://simpleinjector.org/aspnetcore for more information. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
public static void CrossWire<TService>(this Container container, IApplicationBuilder builder)
where TService : class
{
@@ -148,8 +148,8 @@ public static void CrossWire<TService>(this Container container, IApplicationBui
[Obsolete("Please call services.AddSimpleInjector(options => { options.CrossWire(typeof(YourType));" +
" }) instead. AddSimpleInjector can be called from within the ConfigureServices method of the " +
"Startup class. See https://simpleinjector.org/aspnetcore for more information. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
public static void CrossWire(this Container container, Type serviceType, IApplicationBuilder builder)
{
Requires.IsNotNull(container, nameof(container));
@@ -258,8 +258,8 @@ public static void CrossWire(this Container container, Type serviceType, IApplic
[Obsolete("Please call services.AddSimpleInjector() instead. AddSimpleInjector can be called from " +
"within the ConfigureServices method of the Startup class. It ensures auto cross wiring is " +
"enabled. See https://simpleinjector.org/aspnetcore for more information. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
public static void AutoCrossWireAspNetComponents(this Container container, IApplicationBuilder app)
{
Requires.IsNotNull(app, nameof(app));
@@ -278,8 +278,8 @@ public static void AutoCrossWireAspNetComponents(this Container container, IAppl
[Obsolete("Please call services.AddSimpleInjector() instead. AddSimpleInjector can be called from " +
"within the ConfigureServices method of the Startup class. It ensures auto cross wiring is " +
"enabled. See https://simpleinjector.org/aspnetcore for more information. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
public static void AutoCrossWireAspNetComponents(
this Container container, IServiceProvider appServices)
{
@@ -85,8 +85,8 @@ public static IApplicationBuilder UseSimpleInjector(this IApplicationBuilder app
"call). Instead, take care that you call .UseMiddleware<TMiddleware>(Container) at the right " +
"stage. This typically means after .UseStaticFiles() and .UseAuthorization(), but before " +
".UseEndpoints(...). See https://simpleinjector.org/aspnetcore for more information. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
public static void UseMiddleware<TMiddleware>(
this SimpleInjectorUseOptions options, IApplicationBuilder app)
where TMiddleware : class, IMiddleware
@@ -111,8 +111,8 @@ public static IApplicationBuilder UseSimpleInjector(this IApplicationBuilder app
"call). Instead, take care that you call .UseMiddleware<TMiddleware>(Container) at the right " +
"stage. This typically means after .UseStaticFiles() and .UseAuthorization(), but before " +
".UseEndpoints(...). See https://simpleinjector.org/aspnetcore for more information. " +
"Will be treated as an error from version 4.9. Will be removed in version 5.0.",
error: false)]
"Will be removed in version 5.0.",
error: true)]
public static void UseMiddleware(
this SimpleInjectorUseOptions options, Type middlewareType, IApplicationBuilder app)
{

0 comments on commit 7b502c7

Please sign in to comment.
You can’t perform that action at this time.