overhaul provider structure
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Pilz.Plugins.Advanced;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -8,5 +9,11 @@ namespace OwnChar.Server.Data
|
||||
{
|
||||
public interface IServerDataProvider
|
||||
{
|
||||
// Shared
|
||||
public const string FeatureCode = "ownchar.server.dataprovider";
|
||||
public IEnumerable<IServerDataProvider> DataProviders => PluginFeatureController.Instance.Features.Get(FeatureCode).Cast<PluginFunction>().Select(f => (IServerDataProvider)f.Execute()!);
|
||||
|
||||
// Interface
|
||||
// ...
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user