Merge pull request #2932 from sbwalker/dev

added deprecation message for IHostResources
This commit is contained in:
Shaun Walker
2023-06-26 08:12:01 -04:00
committed by GitHub

View File

@ -1,11 +1,12 @@
using Oqtane.Models; using Oqtane.Models;
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace Oqtane.Infrastructure namespace Oqtane.Infrastructure
{ {
// this interface is for declaring global resources and is useful for scenarios where you want to declare resources in a single location for the entire application
public interface IHostResources public interface IHostResources
{ {
[Obsolete("IHostResources is deprecated. Use module or theme scoped Resources in conjunction with ResourceLevel.Site instead.", false)]
List<Resource> Resources { get; } // identifies global resources for an application List<Resource> Resources { get; } // identifies global resources for an application
} }
} }