@@ -17,7 +17,7 @@ public partial class STATask
1717		/// <param name="action">The work to execute in the STA thread.</param> 
1818		/// <param name="logger">Optional logger to capture any exception that occurs during execution.</param> 
1919		/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns> 
20- 		public  static   Task  Run ( Action  action ,  ILogger ?  logger   =   null ) 
20+ 		public  static   Task  Run ( Action  action ,  ILogger  logger ) 
2121		{ 
2222			var  tcs  =  new  TaskCompletionSource ( ) ; 
2323
@@ -56,7 +56,7 @@ public static Task Run(Action action, ILogger? logger = null)
5656		/// <param name="func">The work to execute in the STA thread.</param> 
5757		/// <param name="logger">Optional logger to capture any exception that occurs during execution.</param> 
5858		/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns> 
59- 		public  static   Task < T >  Run < T > ( Func < T >  func ,  ILogger ?  logger   =   null ) 
59+ 		public  static   Task < T >  Run < T > ( Func < T >  func ,  ILogger  logger ) 
6060		{ 
6161			var  tcs  =  new  TaskCompletionSource < T > ( ) ; 
6262
@@ -93,7 +93,7 @@ public static Task<T> Run<T>(Func<T> func, ILogger? logger = null)
9393		/// <param name="func">The work to execute in the STA thread.</param> 
9494		/// <param name="logger">Optional logger to capture any exception that occurs during execution.</param> 
9595		/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns> 
96- 		public  static   Task  Run ( Func < Task >  func ,  ILogger ?  logger   =   null ) 
96+ 		public  static   Task  Run ( Func < Task >  func ,  ILogger  logger ) 
9797		{ 
9898			var  tcs  =  new  TaskCompletionSource ( ) ; 
9999
@@ -132,7 +132,7 @@ public static Task Run(Func<Task> func, ILogger? logger = null)
132132		/// <param name="func">The work to execute in the STA thread.</param> 
133133		/// <param name="logger">Optional logger to capture any exception that occurs during execution.</param> 
134134		/// <returns>A <see cref="Task"/> that represents the work scheduled to execute in the STA thread.</returns> 
135- 		public  static   Task < T ? >  Run < T > ( Func < Task < T > >  func ,  ILogger ?  logger   =   null ) 
135+ 		public  static   Task < T ? >  Run < T > ( Func < Task < T > >  func ,  ILogger  logger ) 
136136		{ 
137137			var  tcs  =  new  TaskCompletionSource < T ? > ( ) ; 
138138
0 commit comments