diff --git a/src/DotVVM.Framework/Runtime/DefaultStaticCommandServiceLoader.cs b/src/DotVVM.Framework/Runtime/DefaultStaticCommandServiceLoader.cs index a96e43fcc2..cec782ea7a 100644 --- a/src/DotVVM.Framework/Runtime/DefaultStaticCommandServiceLoader.cs +++ b/src/DotVVM.Framework/Runtime/DefaultStaticCommandServiceLoader.cs @@ -9,8 +9,9 @@ namespace DotVVM.Framework.Runtime [Obsolete(DefaultStaticCommandServiceLoader.DeprecationNotice)] public class DefaultStaticCommandServiceLoader : IStaticCommandServiceLoader { - public const string DeprecationNotice = "IStaticCommandServiceLoader is an only temporary workaround for a flaw in service registration in DotVVM.Hosting.OWIN and it will be REMOVED SOON!. " + - "\n\rNow you can replace IServiceProvider by your own in Startup class by using optional parameter 'Func serviceProviderFactoryMethod' in app.UseDotVVM() method."; + public const string DeprecationNotice = @"IStaticCommandServiceLoader is a workaround for the case when you need to resolve the static command service from your IoC/DI container but you do not want to integrate it with IServiceProvider (for eample if you integrace DotVVM in an existing ASP.NET project). + In most cases, you don't want to use this method, as you can replace the IServiceProvider with your own implementation in Startup.cs by using optional parameter 'Func serviceProviderFactoryMethod' of the app.UseDotVVM() method. + See https://www.dotvvm.com/docs/tutorials/advanced-ioc-di-container-owin/2.0"; public virtual object GetStaticCommandService(Type serviceType, IDotvvmRequestContext context) { return context.Services.GetRequiredService(serviceType);