@@ -35,61 +35,61 @@ internal async Task<Intercept> AddInterceptAsync(IEnumerable<InterceptPhase> pha
3535 return result . Intercept ;
3636 }
3737
38- internal async Task RemoveInterceptAsync ( Intercept intercept , RemoveInterceptOptions ? options = null )
38+ internal async Task < EmptyResult > RemoveInterceptAsync ( Intercept intercept , RemoveInterceptOptions ? options = null )
3939 {
4040 var @params = new RemoveInterceptCommandParameters ( intercept ) ;
4141
42- await Broker . ExecuteCommandAsync ( new RemoveInterceptCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
42+ return await Broker . ExecuteCommandAsync < RemoveInterceptCommand , EmptyResult > ( new RemoveInterceptCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
4343 }
4444
45- public async Task SetCacheBehaviorAsync ( CacheBehavior behavior , SetCacheBehaviorOptions ? options = null )
45+ public async Task < EmptyResult > SetCacheBehaviorAsync ( CacheBehavior behavior , SetCacheBehaviorOptions ? options = null )
4646 {
4747 var @params = new SetCacheBehaviorCommandParameters ( behavior , options ? . Contexts ) ;
4848
49- await Broker . ExecuteCommandAsync ( new SetCacheBehaviorCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
49+ return await Broker . ExecuteCommandAsync < SetCacheBehaviorCommand , EmptyResult > ( new SetCacheBehaviorCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
5050 }
5151
52- internal async Task ContinueRequestAsync ( Request request , ContinueRequestOptions ? options = null )
52+ internal async Task < EmptyResult > ContinueRequestAsync ( Request request , ContinueRequestOptions ? options = null )
5353 {
5454 var @params = new ContinueRequestCommandParameters ( request , options ? . Body , options ? . Cookies , options ? . Headers , options ? . Method , options ? . Url ) ;
5555
56- await Broker . ExecuteCommandAsync ( new ContinueRequestCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
56+ return await Broker . ExecuteCommandAsync < ContinueRequestCommand , EmptyResult > ( new ContinueRequestCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
5757 }
5858
59- internal async Task ContinueResponseAsync ( Request request , ContinueResponseOptions ? options = null )
59+ internal async Task < EmptyResult > ContinueResponseAsync ( Request request , ContinueResponseOptions ? options = null )
6060 {
6161 var @params = new ContinueResponseCommandParameters ( request , options ? . Cookies , options ? . Credentials , options ? . Headers , options ? . ReasonPhrase , options ? . StatusCode ) ;
6262
63- await Broker . ExecuteCommandAsync ( new ContinueResponseCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
63+ return await Broker . ExecuteCommandAsync < ContinueResponseCommand , EmptyResult > ( new ContinueResponseCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
6464 }
6565
66- internal async Task FailRequestAsync ( Request request , FailRequestOptions ? options = null )
66+ internal async Task < EmptyResult > FailRequestAsync ( Request request , FailRequestOptions ? options = null )
6767 {
6868 var @params = new FailRequestCommandParameters ( request ) ;
6969
70- await Broker . ExecuteCommandAsync ( new FailRequestCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
70+ return await Broker . ExecuteCommandAsync < FailRequestCommand , EmptyResult > ( new FailRequestCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
7171 }
7272
73- internal async Task ProvideResponseAsync ( Request request , ProvideResponseOptions ? options = null )
73+ internal async Task < EmptyResult > ProvideResponseAsync ( Request request , ProvideResponseOptions ? options = null )
7474 {
7575 var @params = new ProvideResponseCommandParameters ( request , options ? . Body , options ? . Cookies , options ? . Headers , options ? . ReasonPhrase , options ? . StatusCode ) ;
7676
77- await Broker . ExecuteCommandAsync ( new ProvideResponseCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
77+ return await Broker . ExecuteCommandAsync < ProvideResponseCommand , EmptyResult > ( new ProvideResponseCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
7878 }
7979
80- internal async Task ContinueWithAuthAsync ( Request request , AuthCredentials credentials , ContinueWithAuthCredentialsOptions ? options = null )
80+ internal async Task < EmptyResult > ContinueWithAuthAsync ( Request request , AuthCredentials credentials , ContinueWithAuthCredentialsOptions ? options = null )
8181 {
82- await Broker . ExecuteCommandAsync ( new ContinueWithAuthCommand ( new ContinueWithAuthCredentials ( request , credentials ) ) , options ) . ConfigureAwait ( false ) ;
82+ return await Broker . ExecuteCommandAsync < ContinueWithAuthCommand , EmptyResult > ( new ContinueWithAuthCommand ( new ContinueWithAuthCredentials ( request , credentials ) ) , options ) . ConfigureAwait ( false ) ;
8383 }
8484
85- internal async Task ContinueWithAuthAsync ( Request request , ContinueWithAuthDefaultCredentialsOptions ? options = null )
85+ internal async Task < EmptyResult > ContinueWithAuthAsync ( Request request , ContinueWithAuthDefaultCredentialsOptions ? options = null )
8686 {
87- await Broker . ExecuteCommandAsync ( new ContinueWithAuthCommand ( new ContinueWithAuthDefaultCredentials ( request ) ) , options ) . ConfigureAwait ( false ) ;
87+ return await Broker . ExecuteCommandAsync < ContinueWithAuthCommand , EmptyResult > ( new ContinueWithAuthCommand ( new ContinueWithAuthDefaultCredentials ( request ) ) , options ) . ConfigureAwait ( false ) ;
8888 }
8989
90- internal async Task ContinueWithAuthAsync ( Request request , ContinueWithAuthCancelCredentialsOptions ? options = null )
90+ internal async Task < EmptyResult > ContinueWithAuthAsync ( Request request , ContinueWithAuthCancelCredentialsOptions ? options = null )
9191 {
92- await Broker . ExecuteCommandAsync ( new ContinueWithAuthCommand ( new ContinueWithAuthCancelCredentials ( request ) ) , options ) . ConfigureAwait ( false ) ;
92+ return await Broker . ExecuteCommandAsync < ContinueWithAuthCommand , EmptyResult > ( new ContinueWithAuthCommand ( new ContinueWithAuthCancelCredentials ( request ) ) , options ) . ConfigureAwait ( false ) ;
9393 }
9494
9595 public async Task < Subscription > OnBeforeRequestSentAsync ( Func < BeforeRequestSentEventArgs , Task > handler , SubscriptionOptions ? options = null )
0 commit comments