增加Prism 框架

This commit is contained in:
chfei committed 2026-08-31 16:28:23 +08:00
1 parent 2cd6b8db86
commit 726eb6de16
99 files changed
+12527

No files matched your search

@@ -0,0 +1,17 @@
using MAX.Core.DependencyInjection;
namespace MAX.Framework.Interfaces
{
public interface IAppConfig : ISingletonDependency
{
/// <summary>
/// 公司名称
/// </summary>
string CompanyName { get; }
/// <summary>
/// 软件名称
/// </summary>
string AppName { get; }
T GetValue<T>(string key, T defaultValue = default);
}
}
@@ -0,0 +1,38 @@
using MAX.Core;
using MAX.Core.DependencyInjection;
using System.Threading.Tasks;
namespace MAX.Framework.Interfaces
{
/// <summary>
/// 初始化接口
/// </summary>
public interface IAppInitialize : ISingletonDependency, IPriority
{
/// <summary>
/// 描述
/// </summary>
string Description { get; }
/// <summary>
/// App 初始化数据
/// </summary>
void AppInitialize();
}
/// <summary>
/// 初始化接口(异步)
/// </summary>
public interface IAppInitializeAsync : ISingletonDependency, IPriority
{
/// <summary>
/// 描述
/// </summary>
string Description { get; }
/// <summary>
/// App 初始化数据
/// </summary>
Task AppInitializeAsync();
}
}
@@ -0,0 +1,20 @@
using MAX.Core.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MAX.Framework.Interfaces
{
public interface IFolderConfig: ISingletonDependency
{
/// <summary>
/// 执行目录
/// </summary>
string LocalFolder { get; }
string LocalAppFolder { get; }
string TargetFolder { get; }
string LoggingFolder { get; }
}
}