Merge pull request #5 from dotnet-campus/t/bot/fix-codeformatting

[Bot] Automated PR to fix formatting errors
This commit is contained in:
lindexi
2022-03-18 19:20:56 +08:00
committed by GitHub
20 changed files with 26 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
using System.Windows;
using System.Windows;
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located

View File

@@ -14,7 +14,8 @@ namespace dotnetCampus.ApplicationStartupManager
private readonly Stopwatch _mainWatch;
protected ConcurrentDictionary<string, (string threadName, long start, long elapsed)>
MilestoneDictionary { get; } = new ConcurrentDictionary<string, (string, long, long)>();
MilestoneDictionary
{ get; } = new ConcurrentDictionary<string, (string, long, long)>();
public StartupLoggerBase()
{

View File

@@ -56,7 +56,7 @@ namespace dotnetCampus.ApplicationStartupManager
protected TValue FetchValue<TStartup, TValue>() where TStartup : StartupTaskBase, IStartupValueProvider<TValue>
{
var task = Manager.GetStartupTask<TStartup>();
var v = (IStartupValueProvider<TValue>)task;
var v = (IStartupValueProvider<TValue>) task;
return v.ProvideValue();
}
}

View File

@@ -15,7 +15,7 @@ namespace dotnetCampus.ApplicationStartupManager
/// </summary>
/// <param name="key">表示此 <see cref="StartupTaskBase"/> 的唯一标识符。</param>
/// <param name="creator">此 <see cref="StartupTaskBase"/> 实例的创建方法。</param>
public StartupTaskMetadata( string key, Func<StartupTaskBase> creator)
public StartupTaskMetadata(string key, Func<StartupTaskBase> creator)
{
Key = key ?? throw new ArgumentNullException(nameof(key));
_taskLazy = new Lazy<StartupTaskBase>(

View File

@@ -22,7 +22,7 @@ namespace dotnetCampus.ApplicationStartupManager
public StartupCategory Categories { get; internal set; } = StartupCategory.All;
public StartupTaskBase TaskBase { get; internal set; }
// 框架注入,一定不为空
// 框架注入,一定不为空
= null!;
public bool UIOnly { get; internal set; }
public StartupCriticalLevel CriticalLevel { get; set; }