@@ -4287,7 +4287,7 @@ private Task<int> GetBytesAsyncReadDataStage(GetBytesAsyncResumable resumable, b
42874287 Debug . Assert ( resumable . source != null , "resumable.source shuld not be null when continuing" ) ;
42884288 // setup for cleanup\completing
42894289 retryTask . ContinueWith (
4290- continuationAction : Resumable < int > . s_completeCallback . Value ,
4290+ continuationAction : Resumable < int > . s_completeCallback ,
42914291 state : resumable ,
42924292 TaskScheduler . Default
42934293 ) ;
@@ -4739,13 +4739,9 @@ private static Task<T> GetFieldValueAsyncWillResume<T>(Task task, object state)
47394739
47404740 private abstract class Resumable < T > : IDisposable
47414741 {
4742- internal static readonly Lazy < Action < Task < T > , object > > s_completeCallback = new Lazy < Action < Task < T > , object > > (
4743- ( ) => SqlDataReader . CompleteResumableCallback < T >
4744- ) ;
4742+ internal static readonly Action < Task < T > , object > s_completeCallback = SqlDataReader . CompleteResumableCallback < T > ;
47454743
4746- internal static readonly Lazy < Func < Task , object , Task < T > > > s_continueCallback = new Lazy < Func < Task , object , Task < T > > > (
4747- ( ) => SqlDataReader . ContinueResumableCallback < T >
4748- ) ;
4744+ internal static readonly Func < Task , object , Task < T > > s_continueCallback = SqlDataReader . ContinueResumableCallback < T > ;
47494745
47504746 internal SqlDataReader reader ;
47514747 internal TaskCompletionSource < T > source ;
@@ -4927,7 +4923,7 @@ private Task<T> ContinueResumable<T>(Resumable<T> resumable)
49274923 else
49284924 {
49294925 return completionSource . Task . ContinueWith (
4930- continuationFunction : Resumable < T > . s_continueCallback . Value ,
4926+ continuationFunction : Resumable < T > . s_continueCallback ,
49314927 state : resumable ,
49324928 TaskScheduler . Default
49334929 ) . Unwrap ( ) ;
@@ -5015,7 +5011,7 @@ private Task<T> InvokeResumable<T>(Resumable<T> resumable)
50155011 else
50165012 {
50175013 task . ContinueWith (
5018- continuationAction : Resumable < T > . s_completeCallback . Value ,
5014+ continuationAction : Resumable < T > . s_completeCallback ,
50195015 state : resumable ,
50205016 TaskScheduler . Default
50215017 ) ;
0 commit comments