Automated dotnet-format update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Windows;
|
||||
using System.Windows;
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
|
||||
@@ -16,4 +16,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
/// <returns></returns>
|
||||
Task InvokeAsync(Action action);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,4 +9,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
//Task<string> ReadCacheAsync(string key, string @default = "");
|
||||
Task WaitStartupTaskAsync(string startupKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,4 +10,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
Task RecordDuration(string taskName, Func<Task<string>> task);
|
||||
void ReportResult(IReadOnlyList<IStartupTaskWrapper> wrappers);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,4 +8,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
|
||||
StartupTaskBase GetStartupTask<T>() where T : StartupTaskBase;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,4 +9,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
string StartupTaskKey { get; }
|
||||
bool UIOnly { get; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
{
|
||||
T ProvideValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,4 +18,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
/// </summary>
|
||||
All = 1,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,4 +34,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
FastFail = fastFailAction ?? (exception => StartupTaskBase.CompletedTask);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,4 +30,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
/// </summary>
|
||||
Critical,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
@@ -54,4 +55,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@
|
||||
/// </summary>
|
||||
UIOnly,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,4 +56,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
/// </summary>
|
||||
public StartupCriticalLevel CriticalLevel { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,8 +56,8 @@ 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,4 +35,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>(
|
||||
@@ -58,4 +58,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
/// </summary>
|
||||
public StartupCriticalLevel CriticalLevel { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
|
||||
public StartupCategory Categories { get; internal set; } = StartupCategory.All;
|
||||
|
||||
public StartupTaskBase TaskBase { get; internal set; }
|
||||
// 框架注入,一定不为空
|
||||
public StartupTaskBase TaskBase { get; internal set; }
|
||||
// 框架注入,一定不为空
|
||||
= null!;
|
||||
public bool UIOnly { get; internal set; }
|
||||
public StartupCriticalLevel CriticalLevel { get; set; }
|
||||
@@ -88,4 +88,4 @@ namespace dotnetCampus.ApplicationStartupManager
|
||||
#pragma warning restore CS4014 // 由于此调用不会等待,因此在调用完成前将继续执行当前方法
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
Visiting,
|
||||
Visited,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user