From f99859ad1eb4fc5f94077327d60f689b8507b16a Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Tue, 8 Apr 2025 21:38:17 +0800 Subject: [PATCH] Change api function names --- Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs | 8 ++++---- Flow.Launcher/PublicAPIInstance.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs index 6d9e5f755..55f09dc3b 100644 --- a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs +++ b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs @@ -479,25 +479,25 @@ namespace Flow.Launcher.Plugin /// Message will only be logged in Debug mode /// /// The time taken to execute the method in milliseconds - public long StopWatchLogDebug(string className, string message, Action action, [CallerMemberName] string methodName = ""); + public long StopwatchLogDebug(string className, string message, Action action, [CallerMemberName] string methodName = ""); /// /// Log debug message of the time taken to execute a method asynchronously /// Message will only be logged in Debug mode /// /// The time taken to execute the method in milliseconds - public Task StopWatchLogDebugAsync(string className, string message, Func action, [CallerMemberName] string methodName = ""); + public Task StopwatchLogDebugAsync(string className, string message, Func action, [CallerMemberName] string methodName = ""); /// /// Log info message of the time taken to execute a method /// /// The time taken to execute the method in milliseconds - public long StopWatchLogInfo(string className, string message, Action action, [CallerMemberName] string methodName = ""); + public long StopwatchLogInfo(string className, string message, Action action, [CallerMemberName] string methodName = ""); /// /// Log info message of the time taken to execute a method asynchronously /// /// The time taken to execute the method in milliseconds - public Task StopWatchLogInfoAsync(string className, string message, Func action, [CallerMemberName] string methodName = ""); + public Task StopwatchLogInfoAsync(string className, string message, Func action, [CallerMemberName] string methodName = ""); } } diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs index b7aaef143..95ef6c9f3 100644 --- a/Flow.Launcher/PublicAPIInstance.cs +++ b/Flow.Launcher/PublicAPIInstance.cs @@ -432,16 +432,16 @@ namespace Flow.Launcher public Task UninstallPluginAsync(PluginMetadata pluginMetadata, bool removePluginSettings = false) => PluginManager.UninstallPluginAsync(pluginMetadata, removePluginSettings); - public long StopWatchLogDebug(string className, string message, Action action, [CallerMemberName] string methodName = "") => + public long StopwatchLogDebug(string className, string message, Action action, [CallerMemberName] string methodName = "") => Stopwatch.Debug($"|{className}.{methodName}|{message}", action); - public Task StopWatchLogDebugAsync(string className, string message, Func action, [CallerMemberName] string methodName = "") => + public Task StopwatchLogDebugAsync(string className, string message, Func action, [CallerMemberName] string methodName = "") => Stopwatch.DebugAsync($"|{className}.{methodName}|{message}", action); - public long StopWatchLogInfo(string className, string message, Action action, [CallerMemberName] string methodName = "") => + public long StopwatchLogInfo(string className, string message, Action action, [CallerMemberName] string methodName = "") => Stopwatch.Normal($"|{className}.{methodName}|{message}", action); - public Task StopWatchLogInfoAsync(string className, string message, Func action, [CallerMemberName] string methodName = "") => + public Task StopwatchLogInfoAsync(string className, string message, Func action, [CallerMemberName] string methodName = "") => Stopwatch.NormalAsync($"|{className}.{methodName}|{message}", action); #endregion