Deprecated interface using Umbraco.Cms.Core.Scopin...
# help-with-umbraco
h
I have class in my Forum package which configures a custom index. I am injecting Umbraco.Cms.Core.Scoping.IScopeProvider which says is obselete and I should use Umbraco.Cms.Infrastructure.Scoping.ICoreScopeProvider instead. However in the COnfigure method I am doing the following
Copy code
csharp
options.Validator = new ContentValueSetValidator(true, false, _publicAccessService, _scopeProvider, includeItemTypes: new[] { "forumPost" });
This method does not accept an Umbraco.Cms.Infrastructure.Scoping.ICoreScopeProvider, so what should I do about it?
a
I believe I had the same a little while ago
there is no replacement function yet
so you can only fix this, when upgrading to v14
h
Thanks, will just ignore it for now then 😄
39 Views