@@ -29,7 +29,7 @@ public async Task<BrowsingContext> CreateAsync(ContextType type, CreateOptions?
2929    { 
3030        var  @params  =  new  CreateParameters ( type ,  options ? . ReferenceContext ,  options ? . Background ,  options ? . UserContext ) ; 
3131
32-         var  createResult  =  await  Broker . ExecuteCommandAsync < CreateCommand ,   CreateResult > ( new  CreateCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
32+         var  createResult  =  await  Broker . ExecuteCommandAsync ( new  CreateCommand ( @params ) ,  options ,  JsonContext . CreateCommand ,   JsonContext . CreateResult ) . ConfigureAwait ( false ) ; 
3333
3434        return  createResult . Context ; 
3535    } 
@@ -38,77 +38,77 @@ public async Task<NavigateResult> NavigateAsync(BrowsingContext context, string
3838    { 
3939        var  @params  =  new  NavigateParameters ( context ,  url ,  options ? . Wait ) ; 
4040
41-         return  await  Broker . ExecuteCommandAsync < NavigateCommand ,   NavigateResult > ( new  NavigateCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
41+         return  await  Broker . ExecuteCommandAsync ( new  NavigateCommand ( @params ) ,  options ,  JsonContext . NavigateCommand ,   JsonContext . NavigateResult ) . ConfigureAwait ( false ) ; 
4242    } 
4343
4444    public  async  Task < EmptyResult >  ActivateAsync ( BrowsingContext  context ,  ActivateOptions ?  options  =  null ) 
4545    { 
4646        var  @params  =  new  ActivateParameters ( context ) ; 
4747
48-         return  await  Broker . ExecuteCommandAsync < ActivateCommand ,   EmptyResult > ( new  ActivateCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
48+         return  await  Broker . ExecuteCommandAsync ( new  ActivateCommand ( @params ) ,  options ,  JsonContext . ActivateCommand ,   JsonContext . EmptyResult ) . ConfigureAwait ( false ) ; 
4949    } 
5050
5151    public  async  Task < LocateNodesResult >  LocateNodesAsync ( BrowsingContext  context ,  Locator  locator ,  LocateNodesOptions ?  options  =  null ) 
5252    { 
5353        var  @params  =  new  LocateNodesParameters ( context ,  locator ,  options ? . MaxNodeCount ,  options ? . SerializationOptions ,  options ? . StartNodes ) ; 
5454
55-         return  await  Broker . ExecuteCommandAsync < LocateNodesCommand ,   LocateNodesResult > ( new  LocateNodesCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
55+         return  await  Broker . ExecuteCommandAsync ( new  LocateNodesCommand ( @params ) ,  options ,  JsonContext . LocateNodesCommand ,   JsonContext . LocateNodesResult ) . ConfigureAwait ( false ) ; 
5656    } 
5757
5858    public  async  Task < CaptureScreenshotResult >  CaptureScreenshotAsync ( BrowsingContext  context ,  CaptureScreenshotOptions ?  options  =  null ) 
5959    { 
6060        var  @params  =  new  CaptureScreenshotParameters ( context ,  options ? . Origin ,  options ? . Format ,  options ? . Clip ) ; 
6161
62-         return  await  Broker . ExecuteCommandAsync < CaptureScreenshotCommand ,   CaptureScreenshotResult > ( new  CaptureScreenshotCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
62+         return  await  Broker . ExecuteCommandAsync ( new  CaptureScreenshotCommand ( @params ) ,  options ,  JsonContext . CaptureScreenshotCommand ,   JsonContext . CaptureScreenshotResult ) . ConfigureAwait ( false ) ; 
6363    } 
6464
6565    public  async  Task < EmptyResult >  CloseAsync ( BrowsingContext  context ,  CloseOptions ?  options  =  null ) 
6666    { 
6767        var  @params  =  new  CloseParameters ( context ,  options ? . PromptUnload ) ; 
6868
69-         return  await  Broker . ExecuteCommandAsync < CloseCommand ,   EmptyResult > ( new  CloseCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
69+         return  await  Broker . ExecuteCommandAsync ( new  CloseCommand ( @params ) ,  options ,  JsonContext . BrowsingContext_CloseCommand ,   JsonContext . EmptyResult ) . ConfigureAwait ( false ) ; 
7070    } 
7171
7272    public  async  Task < TraverseHistoryResult >  TraverseHistoryAsync ( BrowsingContext  context ,  int  delta ,  TraverseHistoryOptions ?  options  =  null ) 
7373    { 
7474        var  @params  =  new  TraverseHistoryParameters ( context ,  delta ) ; 
7575
76-         return  await  Broker . ExecuteCommandAsync < TraverseHistoryCommand ,   TraverseHistoryResult > ( new  TraverseHistoryCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
76+         return  await  Broker . ExecuteCommandAsync ( new  TraverseHistoryCommand ( @params ) ,  options ,  JsonContext . TraverseHistoryCommand ,   JsonContext . TraverseHistoryResult ) . ConfigureAwait ( false ) ; 
7777    } 
7878
7979    public  async  Task < NavigateResult >  ReloadAsync ( BrowsingContext  context ,  ReloadOptions ?  options  =  null ) 
8080    { 
8181        var  @params  =  new  ReloadParameters ( context ,  options ? . IgnoreCache ,  options ? . Wait ) ; 
8282
83-         return  await  Broker . ExecuteCommandAsync < ReloadCommand ,   NavigateResult > ( new  ReloadCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
83+         return  await  Broker . ExecuteCommandAsync ( new  ReloadCommand ( @params ) ,  options ,  JsonContext . ReloadCommand ,   JsonContext . NavigateResult ) . ConfigureAwait ( false ) ; 
8484    } 
8585
8686    public  async  Task < EmptyResult >  SetViewportAsync ( BrowsingContext  context ,  SetViewportOptions ?  options  =  null ) 
8787    { 
8888        var  @params  =  new  SetViewportParameters ( context ,  options ? . Viewport ,  options ? . DevicePixelRatio ) ; 
8989
90-         return  await  Broker . ExecuteCommandAsync < SetViewportCommand ,   EmptyResult > ( new  SetViewportCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
90+         return  await  Broker . ExecuteCommandAsync ( new  SetViewportCommand ( @params ) ,  options ,  JsonContext . SetViewportCommand ,   JsonContext . EmptyResult ) . ConfigureAwait ( false ) ; 
9191    } 
9292
9393    public  async  Task < GetTreeResult >  GetTreeAsync ( GetTreeOptions ?  options  =  null ) 
9494    { 
9595        var  @params  =  new  GetTreeParameters ( options ? . MaxDepth ,  options ? . Root ) ; 
9696
97-         return  await  Broker . ExecuteCommandAsync < GetTreeCommand ,   GetTreeResult > ( new  GetTreeCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
97+         return  await  Broker . ExecuteCommandAsync ( new  GetTreeCommand ( @params ) ,  options ,  JsonContext . GetTreeCommand ,   JsonContext . GetTreeResult ) . ConfigureAwait ( false ) ; 
9898    } 
9999
100100    public  async  Task < PrintResult >  PrintAsync ( BrowsingContext  context ,  PrintOptions ?  options  =  null ) 
101101    { 
102102        var  @params  =  new  PrintParameters ( context ,  options ? . Background ,  options ? . Margin ,  options ? . Orientation ,  options ? . Page ,  options ? . PageRanges ,  options ? . Scale ,  options ? . ShrinkToFit ) ; 
103103
104-         return  await  Broker . ExecuteCommandAsync < PrintCommand ,   PrintResult > ( new  PrintCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
104+         return  await  Broker . ExecuteCommandAsync ( new  PrintCommand ( @params ) ,  options ,  JsonContext . PrintCommand ,   JsonContext . PrintResult ) . ConfigureAwait ( false ) ; 
105105    } 
106106
107107    public  async  Task < EmptyResult >  HandleUserPromptAsync ( BrowsingContext  context ,  HandleUserPromptOptions ?  options  =  null ) 
108108    { 
109109        var  @params  =  new  HandleUserPromptParameters ( context ,  options ? . Accept ,  options ? . UserText ) ; 
110110
111-         return  await  Broker . ExecuteCommandAsync < HandleUserPromptCommand ,   EmptyResult > ( new  HandleUserPromptCommand ( @params ) ,  options ,  JsonContext ) . ConfigureAwait ( false ) ; 
111+         return  await  Broker . ExecuteCommandAsync ( new  HandleUserPromptCommand ( @params ) ,  options ,  JsonContext . HandleUserPromptCommand ,   JsonContext . EmptyResult ) . ConfigureAwait ( false ) ; 
112112    } 
113113
114114    public  async  Task < Subscription >  OnNavigationStartedAsync ( Func < NavigationInfo ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
0 commit comments