@@ -27,7 +27,7 @@ public sealed class BrowsingContextModule(Broker broker) : Module(broker)
2727{
2828 public async Task < BrowsingContext > CreateAsync ( ContextType type , CreateOptions ? options = null )
2929 {
30- var @params = new CreateCommandParameters ( type , options ? . ReferenceContext , options ? . Background , options ? . UserContext ) ;
30+ var @params = new CreateParameters ( type , options ? . ReferenceContext , options ? . Background , options ? . UserContext ) ;
3131
3232 var createResult = await Broker . ExecuteCommandAsync < CreateCommand , CreateResult > ( new CreateCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
3333
@@ -36,77 +36,77 @@ public async Task<BrowsingContext> CreateAsync(ContextType type, CreateOptions?
3636
3737 public async Task < NavigateResult > NavigateAsync ( BrowsingContext context , string url , NavigateOptions ? options = null )
3838 {
39- var @params = new NavigateCommandParameters ( context , url , options ? . Wait ) ;
39+ var @params = new NavigateParameters ( context , url , options ? . Wait ) ;
4040
4141 return await Broker . ExecuteCommandAsync < NavigateCommand , NavigateResult > ( new NavigateCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
4242 }
4343
4444 public async Task < EmptyResult > ActivateAsync ( BrowsingContext context , ActivateOptions ? options = null )
4545 {
46- var @params = new ActivateCommandParameters ( context ) ;
46+ var @params = new ActivateParameters ( context ) ;
4747
4848 return await Broker . ExecuteCommandAsync < ActivateCommand , EmptyResult > ( new ActivateCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
4949 }
5050
5151 public async Task < LocateNodesResult > LocateNodesAsync ( BrowsingContext context , Locator locator , LocateNodesOptions ? options = null )
5252 {
53- var @params = new LocateNodesCommandParameters ( context , locator , options ? . MaxNodeCount , options ? . SerializationOptions , options ? . StartNodes ) ;
53+ var @params = new LocateNodesParameters ( context , locator , options ? . MaxNodeCount , options ? . SerializationOptions , options ? . StartNodes ) ;
5454
5555 return await Broker . ExecuteCommandAsync < LocateNodesCommand , LocateNodesResult > ( new LocateNodesCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
5656 }
5757
5858 public async Task < CaptureScreenshotResult > CaptureScreenshotAsync ( BrowsingContext context , CaptureScreenshotOptions ? options = null )
5959 {
60- var @params = new CaptureScreenshotCommandParameters ( context , options ? . Origin , options ? . Format , options ? . Clip ) ;
60+ var @params = new CaptureScreenshotParameters ( context , options ? . Origin , options ? . Format , options ? . Clip ) ;
6161
6262 return await Broker . ExecuteCommandAsync < CaptureScreenshotCommand , CaptureScreenshotResult > ( new CaptureScreenshotCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
6363 }
6464
6565 public async Task < EmptyResult > CloseAsync ( BrowsingContext context , CloseOptions ? options = null )
6666 {
67- var @params = new CloseCommandParameters ( context , options ? . PromptUnload ) ;
67+ var @params = new CloseParameters ( context , options ? . PromptUnload ) ;
6868
6969 return await Broker . ExecuteCommandAsync < CloseCommand , EmptyResult > ( new CloseCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
7070 }
7171
7272 public async Task < TraverseHistoryResult > TraverseHistoryAsync ( BrowsingContext context , int delta , TraverseHistoryOptions ? options = null )
7373 {
74- var @params = new TraverseHistoryCommandParameters ( context , delta ) ;
74+ var @params = new TraverseHistoryParameters ( context , delta ) ;
7575
7676 return await Broker . ExecuteCommandAsync < TraverseHistoryCommand , TraverseHistoryResult > ( new TraverseHistoryCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
7777 }
7878
7979 public async Task < NavigateResult > ReloadAsync ( BrowsingContext context , ReloadOptions ? options = null )
8080 {
81- var @params = new ReloadCommandParameters ( context , options ? . IgnoreCache , options ? . Wait ) ;
81+ var @params = new ReloadParameters ( context , options ? . IgnoreCache , options ? . Wait ) ;
8282
8383 return await Broker . ExecuteCommandAsync < ReloadCommand , NavigateResult > ( new ReloadCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
8484 }
8585
8686 public async Task < EmptyResult > SetViewportAsync ( BrowsingContext context , SetViewportOptions ? options = null )
8787 {
88- var @params = new SetViewportCommandParameters ( context , options ? . Viewport , options ? . DevicePixelRatio ) ;
88+ var @params = new SetViewportParameters ( context , options ? . Viewport , options ? . DevicePixelRatio ) ;
8989
9090 return await Broker . ExecuteCommandAsync < SetViewportCommand , EmptyResult > ( new SetViewportCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
9191 }
9292
9393 public async Task < GetTreeResult > GetTreeAsync ( GetTreeOptions ? options = null )
9494 {
95- var @params = new GetTreeCommandParameters ( options ? . MaxDepth , options ? . Root ) ;
95+ var @params = new GetTreeParameters ( options ? . MaxDepth , options ? . Root ) ;
9696
9797 return await Broker . ExecuteCommandAsync < GetTreeCommand , GetTreeResult > ( new GetTreeCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
9898 }
9999
100100 public async Task < PrintResult > PrintAsync ( BrowsingContext context , PrintOptions ? options = null )
101101 {
102- var @params = new PrintCommandParameters ( context , options ? . Background , options ? . Margin , options ? . Orientation , options ? . Page , options ? . PageRanges , options ? . Scale , options ? . ShrinkToFit ) ;
102+ var @params = new PrintParameters ( context , options ? . Background , options ? . Margin , options ? . Orientation , options ? . Page , options ? . PageRanges , options ? . Scale , options ? . ShrinkToFit ) ;
103103
104104 return await Broker . ExecuteCommandAsync < PrintCommand , PrintResult > ( new PrintCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
105105 }
106106
107107 public async Task < EmptyResult > HandleUserPromptAsync ( BrowsingContext context , HandleUserPromptOptions ? options = null )
108108 {
109- var @params = new HandleUserPromptCommandParameters ( context , options ? . Accept , options ? . UserText ) ;
109+ var @params = new HandleUserPromptParameters ( context , options ? . Accept , options ? . UserText ) ;
110110
111111 return await Broker . ExecuteCommandAsync < HandleUserPromptCommand , EmptyResult > ( new HandleUserPromptCommand ( @params ) , options ) . ConfigureAwait ( false ) ;
112112 }
0 commit comments