start work to allow custom accent colors
This commit is contained in:
@ -10,13 +10,17 @@ namespace SharedLibraryCore.Configuration
|
||||
{
|
||||
|
||||
[LocalizedDisplayName("SETUP_ENABLE_WEBFRONT")]
|
||||
[ConfigurationLinked("WebfrontBindUrl", "ManualWebfrontUrl")]
|
||||
[ConfigurationLinked("WebfrontBindUrl", "ManualWebfrontUrl", "WebfrontPrimaryColor", "WebfrontSecondaryColor")]
|
||||
public bool EnableWebFront { get; set; }
|
||||
[LocalizedDisplayName("WEBFRONT_CONFIGURATION_BIND_URL")]
|
||||
public string WebfrontBindUrl { get; set; }
|
||||
[ConfigurationOptional]
|
||||
[LocalizedDisplayName("WEBFRONT_CONFIGURATION_MANUAL_URL")]
|
||||
public string ManualWebfrontUrl { get; set; }
|
||||
[ConfigurationOptional]
|
||||
public string WebfrontPrimaryColor { get; set; }
|
||||
[ConfigurationOptional]
|
||||
public string WebfrontSecondaryColor { get; set; }
|
||||
|
||||
[LocalizedDisplayName("SETUP_ENABLE_MULTIOWN")]
|
||||
public bool EnableMultipleOwners { get; set; }
|
||||
|
@ -46,6 +46,7 @@ namespace SharedLibraryCore.Interfaces
|
||||
/// <returns></returns>
|
||||
Task<IList<T>> ExecuteSharedDatabaseOperation<T>(string operationName);
|
||||
void RegisterSharedDatabaseOperation(Task<IList> operation, string operationName);
|
||||
IMiddlewareActionHandler MiddlewareActionHandler { get; }
|
||||
IRConParser GenerateDynamicRConParser();
|
||||
IEventParser GenerateDynamicEventParser();
|
||||
string Version { get;}
|
||||
|
12
SharedLibraryCore/Interfaces/IMiddlewareAction.cs
Normal file
12
SharedLibraryCore/Interfaces/IMiddlewareAction.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
public interface IMiddlewareAction<T>
|
||||
{
|
||||
Task<T> Invoke(T original);
|
||||
}
|
||||
}
|
13
SharedLibraryCore/Interfaces/IMiddlewareActionHandler.cs
Normal file
13
SharedLibraryCore/Interfaces/IMiddlewareActionHandler.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
public interface IMiddlewareActionHandler
|
||||
{
|
||||
void Register<T>(T actionType, IMiddlewareAction<T> action, string name = null);
|
||||
Task<T> Execute<T>(T value, string name = null);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user