@@ -15,7 +15,7 @@ namespace GeneralUpdate.Common.Internal.Strategy
1515{
1616 public abstract class AbstractStrategy : IStrategy
1717 {
18- protected const string Patchs = "patchs" ;
18+ private const string Patchs = "patchs" ;
1919 protected GlobalConfigInfo _configinfo = new ( ) ;
2020
2121 public virtual void Execute ( ) => throw new NotImplementedException ( ) ;
@@ -114,8 +114,7 @@ protected virtual void OnExecuteComplete()
114114 /// </summary>
115115 protected virtual void HandleExecuteException ( Exception e )
116116 {
117- var className = GetType ( ) . Name ;
118- GeneralTracer . Error ( $ "Exception in { className } .ExecuteAsync method.", e ) ;
117+ GeneralTracer . Error ( $ "Strategy execution exception.", e ) ;
119118 EventManager . Instance . Dispatch ( this , new ExceptionEventArgs ( e , e . Message ) ) ;
120119 }
121120
@@ -130,7 +129,7 @@ protected static string CheckPath(string path, string name)
130129 return File . Exists ( tempPath ) ? tempPath : string . Empty ;
131130 }
132131
133- protected static void OpenBrowser ( string url )
132+ private static void OpenBrowser ( string url )
134133 {
135134 if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
136135 {
@@ -147,7 +146,7 @@ protected static void OpenBrowser(string url)
147146 throw new PlatformNotSupportedException ( "Unsupported OS platform" ) ;
148147 }
149148
150- protected static void Clear ( string path )
149+ private static void Clear ( string path )
151150 {
152151 if ( Directory . Exists ( path ) )
153152 StorageManager . DeleteDirectory ( path ) ;
0 commit comments