-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
182 additions
and
27 deletions.
There are no files selected for viewing
12 changes: 9 additions & 3 deletions
12
src/dotnetCampus.ApplicationStartupManager/IStartupContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
using System.Threading.Tasks; | ||
//using dotnetCampus.Configurations; | ||
|
||
namespace dotnetCampus.ApplicationStartupManager | ||
{ | ||
/// <summary> | ||
/// 表示启动任务的上下文接口 | ||
/// </summary> | ||
public interface IStartupContext | ||
{ | ||
//IAppConfigurator Configs { get; } | ||
//Task<string> ReadCacheAsync(string key, string @default = ""); | ||
/// <summary> | ||
/// 等待某个启动任务完成 | ||
/// </summary> | ||
/// <param name="startupKey"></param> | ||
/// <returns></returns> | ||
/// 这是框架层需要支持的能力,因此也就放在此 | ||
Task WaitStartupTaskAsync(string startupKey); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/dotnetCampus.ApplicationStartupManager/IStartupValueProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
namespace dotnetCampus.ApplicationStartupManager | ||
{ | ||
/// <summary> | ||
/// 用于启动项里的值提供器,用于多个启动项之间传递参数 | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
public interface IStartupValueProvider<out T> | ||
{ | ||
/// <summary> | ||
/// 获取启动项提供的值 | ||
/// </summary> | ||
/// <returns></returns> | ||
T ProvideValue(); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/dotnetCampus.ApplicationStartupManager/NullObjectStartup.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 3 additions & 13 deletions
16
src/dotnetCampus.ApplicationStartupManager/StartupContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/dotnetCampus.ApplicationStartupManager/StartupTaskAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.