@@ -44,53 +44,53 @@ public async Task<Intercept> AddInterceptAsync(IEnumerable<InterceptPhase> phase
4444 return result . Intercept ;
4545 }
4646
47- public async Task < EmptyResult > RemoveDataCollectorAsync ( Collector collector , RemoveDataCollectorOptions ? options = null )
47+ public async Task < RemoveDataCollectorResult > RemoveDataCollectorAsync ( Collector collector , RemoveDataCollectorOptions ? options = null )
4848 {
4949 var @params = new RemoveDataCollectorParameters ( collector ) ;
5050
51- return await Broker . ExecuteCommandAsync ( new RemoveDataCollectorCommand ( @params ) , options , JsonContext . RemoveDataCollectorCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
51+ return await Broker . ExecuteCommandAsync ( new RemoveDataCollectorCommand ( @params ) , options , JsonContext . RemoveDataCollectorCommand , JsonContext . RemoveDataCollectorResult ) . ConfigureAwait ( false ) ;
5252 }
5353
54- public async Task < EmptyResult > RemoveInterceptAsync ( Intercept intercept , RemoveInterceptOptions ? options = null )
54+ public async Task < RemoveInterceptResult > RemoveInterceptAsync ( Intercept intercept , RemoveInterceptOptions ? options = null )
5555 {
5656 var @params = new RemoveInterceptParameters ( intercept ) ;
5757
58- return await Broker . ExecuteCommandAsync ( new RemoveInterceptCommand ( @params ) , options , JsonContext . RemoveInterceptCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
58+ return await Broker . ExecuteCommandAsync ( new RemoveInterceptCommand ( @params ) , options , JsonContext . RemoveInterceptCommand , JsonContext . RemoveInterceptResult ) . ConfigureAwait ( false ) ;
5959 }
6060
61- public async Task < EmptyResult > SetCacheBehaviorAsync ( CacheBehavior behavior , SetCacheBehaviorOptions ? options = null )
61+ public async Task < SetCacheBehaviorResult > SetCacheBehaviorAsync ( CacheBehavior behavior , SetCacheBehaviorOptions ? options = null )
6262 {
6363 var @params = new SetCacheBehaviorParameters ( behavior , options ? . Contexts ) ;
6464
65- return await Broker . ExecuteCommandAsync ( new SetCacheBehaviorCommand ( @params ) , options , JsonContext . SetCacheBehaviorCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
65+ return await Broker . ExecuteCommandAsync ( new SetCacheBehaviorCommand ( @params ) , options , JsonContext . SetCacheBehaviorCommand , JsonContext . SetCacheBehaviorResult ) . ConfigureAwait ( false ) ;
6666 }
6767
68- public async Task < EmptyResult > SetExtraHeadersAsync ( IEnumerable < Header > headers , SetExtraHeadersOptions ? options = null )
68+ public async Task < SetExtraHeadersResult > SetExtraHeadersAsync ( IEnumerable < Header > headers , SetExtraHeadersOptions ? options = null )
6969 {
7070 var @params = new SetExtraHeadersParameters ( headers , options ? . Contexts , options ? . UserContexts ) ;
7171
72- return await Broker . ExecuteCommandAsync ( new SetExtraHeadersCommand ( @params ) , options , JsonContext . SetExtraHeadersCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
72+ return await Broker . ExecuteCommandAsync ( new SetExtraHeadersCommand ( @params ) , options , JsonContext . SetExtraHeadersCommand , JsonContext . SetExtraHeadersResult ) . ConfigureAwait ( false ) ;
7373 }
7474
75- public async Task < EmptyResult > ContinueRequestAsync ( Request request , ContinueRequestOptions ? options = null )
75+ public async Task < ContinueRequestResult > ContinueRequestAsync ( Request request , ContinueRequestOptions ? options = null )
7676 {
7777 var @params = new ContinueRequestParameters ( request , options ? . Body , options ? . Cookies , options ? . Headers , options ? . Method , options ? . Url ) ;
7878
79- return await Broker . ExecuteCommandAsync ( new ContinueRequestCommand ( @params ) , options , JsonContext . ContinueRequestCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
79+ return await Broker . ExecuteCommandAsync ( new ContinueRequestCommand ( @params ) , options , JsonContext . ContinueRequestCommand , JsonContext . ContinueRequestResult ) . ConfigureAwait ( false ) ;
8080 }
8181
82- public async Task < EmptyResult > ContinueResponseAsync ( Request request , ContinueResponseOptions ? options = null )
82+ public async Task < ContinueResponseResult > ContinueResponseAsync ( Request request , ContinueResponseOptions ? options = null )
8383 {
8484 var @params = new ContinueResponseParameters ( request , options ? . Cookies , options ? . Credentials , options ? . Headers , options ? . ReasonPhrase , options ? . StatusCode ) ;
8585
86- return await Broker . ExecuteCommandAsync ( new ContinueResponseCommand ( @params ) , options , JsonContext . ContinueResponseCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
86+ return await Broker . ExecuteCommandAsync ( new ContinueResponseCommand ( @params ) , options , JsonContext . ContinueResponseCommand , JsonContext . ContinueResponseResult ) . ConfigureAwait ( false ) ;
8787 }
8888
89- public async Task < EmptyResult > FailRequestAsync ( Request request , FailRequestOptions ? options = null )
89+ public async Task < FailRequestResult > FailRequestAsync ( Request request , FailRequestOptions ? options = null )
9090 {
9191 var @params = new FailRequestParameters ( request ) ;
9292
93- return await Broker . ExecuteCommandAsync ( new FailRequestCommand ( @params ) , options , JsonContext . FailRequestCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
93+ return await Broker . ExecuteCommandAsync ( new FailRequestCommand ( @params ) , options , JsonContext . FailRequestCommand , JsonContext . FailRequestResult ) . ConfigureAwait ( false ) ;
9494 }
9595
9696 public async Task < BytesValue > GetDataAsync ( DataType dataType , Request request , GetDataOptions ? options = null )
@@ -102,26 +102,26 @@ public async Task<BytesValue> GetDataAsync(DataType dataType, Request request, G
102102 return result . Bytes ;
103103 }
104104
105- public async Task < EmptyResult > ProvideResponseAsync ( Request request , ProvideResponseOptions ? options = null )
105+ public async Task < ProvideResponseResult > ProvideResponseAsync ( Request request , ProvideResponseOptions ? options = null )
106106 {
107107 var @params = new ProvideResponseParameters ( request , options ? . Body , options ? . Cookies , options ? . Headers , options ? . ReasonPhrase , options ? . StatusCode ) ;
108108
109- return await Broker . ExecuteCommandAsync ( new ProvideResponseCommand ( @params ) , options , JsonContext . ProvideResponseCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
109+ return await Broker . ExecuteCommandAsync ( new ProvideResponseCommand ( @params ) , options , JsonContext . ProvideResponseCommand , JsonContext . ProvideResponseResult ) . ConfigureAwait ( false ) ;
110110 }
111111
112- public async Task < EmptyResult > ContinueWithAuthAsync ( Request request , AuthCredentials credentials , ContinueWithAuthCredentialsOptions ? options = null )
112+ public async Task < ContinueWithAuthResult > ContinueWithAuthAsync ( Request request , AuthCredentials credentials , ContinueWithAuthCredentialsOptions ? options = null )
113113 {
114- return await Broker . ExecuteCommandAsync ( new ContinueWithAuthCommand ( new ContinueWithAuthCredentials ( request , credentials ) ) , options , JsonContext . ContinueWithAuthCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
114+ return await Broker . ExecuteCommandAsync ( new ContinueWithAuthCommand ( new ContinueWithAuthCredentials ( request , credentials ) ) , options , JsonContext . ContinueWithAuthCommand , JsonContext . ContinueWithAuthResult ) . ConfigureAwait ( false ) ;
115115 }
116116
117- public async Task < EmptyResult > ContinueWithAuthAsync ( Request request , ContinueWithAuthDefaultCredentialsOptions ? options = null )
117+ public async Task < ContinueWithAuthResult > ContinueWithAuthAsync ( Request request , ContinueWithAuthDefaultCredentialsOptions ? options = null )
118118 {
119- return await Broker . ExecuteCommandAsync ( new ContinueWithAuthCommand ( new ContinueWithAuthDefaultCredentials ( request ) ) , options , JsonContext . ContinueWithAuthCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
119+ return await Broker . ExecuteCommandAsync ( new ContinueWithAuthCommand ( new ContinueWithAuthDefaultCredentials ( request ) ) , options , JsonContext . ContinueWithAuthCommand , JsonContext . ContinueWithAuthResult ) . ConfigureAwait ( false ) ;
120120 }
121121
122- public async Task < EmptyResult > ContinueWithAuthAsync ( Request request , ContinueWithAuthCancelCredentialsOptions ? options = null )
122+ public async Task < ContinueWithAuthResult > ContinueWithAuthAsync ( Request request , ContinueWithAuthCancelCredentialsOptions ? options = null )
123123 {
124- return await Broker . ExecuteCommandAsync ( new ContinueWithAuthCommand ( new ContinueWithAuthCancelCredentials ( request ) ) , options , JsonContext . ContinueWithAuthCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
124+ return await Broker . ExecuteCommandAsync ( new ContinueWithAuthCommand ( new ContinueWithAuthCancelCredentials ( request ) ) , options , JsonContext . ContinueWithAuthCommand , JsonContext . ContinueWithAuthResult ) . ConfigureAwait ( false ) ;
125125 }
126126
127127 public async Task < Subscription > OnBeforeRequestSentAsync ( Func < BeforeRequestSentEventArgs , Task > handler , SubscriptionOptions ? options = null )
0 commit comments