@@ -27,7 +27,7 @@ public sealed class BrowsingContextModule(Broker broker) : Module(broker)
27
27
{
28
28
public async Task<BrowsingContext> CreateAsync(ContextType type, CreateOptions? options = null)
29
29
{
30
-
var @params = new CreateCommandParameters(type, options?.ReferenceContext, options?.Background, options?.UserContext);
30
+
var @params = new CreateParameters(type, options?.ReferenceContext, options?.Background, options?.UserContext);
31
31
32
32
var createResult = await Broker.ExecuteCommandAsync<CreateCommand, CreateResult>(new CreateCommand(@params), options).ConfigureAwait(false);
33
33
@@ -36,77 +36,77 @@ public async Task<BrowsingContext> CreateAsync(ContextType type, CreateOptions?
36
36
37
37
public async Task<NavigateResult> NavigateAsync(BrowsingContext context, string url, NavigateOptions? options = null)
38
38
{
39
-
var @params = new NavigateCommandParameters(context, url, options?.Wait);
39
+
var @params = new NavigateParameters(context, url, options?.Wait);
40
40
41
41
return await Broker.ExecuteCommandAsync<NavigateCommand, NavigateResult>(new NavigateCommand(@params), options).ConfigureAwait(false);
42
42
}
43
43
44
44
public async Task<EmptyResult> ActivateAsync(BrowsingContext context, ActivateOptions? options = null)
45
45
{
46
-
var @params = new ActivateCommandParameters(context);
46
+
var @params = new ActivateParameters(context);
47
47
48
48
return await Broker.ExecuteCommandAsync<ActivateCommand, EmptyResult>(new ActivateCommand(@params), options).ConfigureAwait(false);
49
49
}
50
50
51
51
public async Task<LocateNodesResult> LocateNodesAsync(BrowsingContext context, Locator locator, LocateNodesOptions? options = null)
52
52
{
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);
54
54
55
55
return await Broker.ExecuteCommandAsync<LocateNodesCommand, LocateNodesResult>(new LocateNodesCommand(@params), options).ConfigureAwait(false);
56
56
}
57
57
58
58
public async Task<CaptureScreenshotResult> CaptureScreenshotAsync(BrowsingContext context, CaptureScreenshotOptions? options = null)
59
59
{
60
-
var @params = new CaptureScreenshotCommandParameters(context, options?.Origin, options?.Format, options?.Clip);
60
+
var @params = new CaptureScreenshotParameters(context, options?.Origin, options?.Format, options?.Clip);
61
61
62
62
return await Broker.ExecuteCommandAsync<CaptureScreenshotCommand, CaptureScreenshotResult>(new CaptureScreenshotCommand(@params), options).ConfigureAwait(false);
63
63
}
64
64
65
65
public async Task<EmptyResult> CloseAsync(BrowsingContext context, CloseOptions? options = null)
66
66
{
67
-
var @params = new CloseCommandParameters(context, options?.PromptUnload);
67
+
var @params = new CloseParameters(context, options?.PromptUnload);
68
68
69
69
return await Broker.ExecuteCommandAsync<CloseCommand, EmptyResult>(new CloseCommand(@params), options).ConfigureAwait(false);
70
70
}
71
71
72
72
public async Task<TraverseHistoryResult> TraverseHistoryAsync(BrowsingContext context, int delta, TraverseHistoryOptions? options = null)
73
73
{
74
-
var @params = new TraverseHistoryCommandParameters(context, delta);
74
+
var @params = new TraverseHistoryParameters(context, delta);
75
75
76
76
return await Broker.ExecuteCommandAsync<TraverseHistoryCommand, TraverseHistoryResult>(new TraverseHistoryCommand(@params), options).ConfigureAwait(false);
77
77
}
78
78
79
79
public async Task<NavigateResult> ReloadAsync(BrowsingContext context, ReloadOptions? options = null)
80
80
{
81
-
var @params = new ReloadCommandParameters(context, options?.IgnoreCache, options?.Wait);
81
+
var @params = new ReloadParameters(context, options?.IgnoreCache, options?.Wait);
82
82
83
83
return await Broker.ExecuteCommandAsync<ReloadCommand, NavigateResult>(new ReloadCommand(@params), options).ConfigureAwait(false);
84
84
}
85
85
86
86
public async Task<EmptyResult> SetViewportAsync(BrowsingContext context, SetViewportOptions? options = null)
87
87
{
88
-
var @params = new SetViewportCommandParameters(context, options?.Viewport, options?.DevicePixelRatio);
88
+
var @params = new SetViewportParameters(context, options?.Viewport, options?.DevicePixelRatio);
89
89
90
90
return await Broker.ExecuteCommandAsync<SetViewportCommand, EmptyResult>(new SetViewportCommand(@params), options).ConfigureAwait(false);
91
91
}
92
92
93
93
public async Task<GetTreeResult> GetTreeAsync(GetTreeOptions? options = null)
94
94
{
95
-
var @params = new GetTreeCommandParameters(options?.MaxDepth, options?.Root);
95
+
var @params = new GetTreeParameters(options?.MaxDepth, options?.Root);
96
96
97
97
return await Broker.ExecuteCommandAsync<GetTreeCommand, GetTreeResult>(new GetTreeCommand(@params), options).ConfigureAwait(false);
98
98
}
99
99
100
100
public async Task<PrintResult> PrintAsync(BrowsingContext context, PrintOptions? options = null)
101
101
{
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);
103
103
104
104
return await Broker.ExecuteCommandAsync<PrintCommand, PrintResult>(new PrintCommand(@params), options).ConfigureAwait(false);
105
105
}
106
106
107
107
public async Task<EmptyResult> HandleUserPromptAsync(BrowsingContext context, HandleUserPromptOptions? options = null)
108
108
{
109
-
var @params = new HandleUserPromptCommandParameters(context, options?.Accept, options?.UserText);
109
+
var @params = new HandleUserPromptParameters(context, options?.Accept, options?.UserText);
110
110
111
111
return await Broker.ExecuteCommandAsync<HandleUserPromptCommand, EmptyResult>(new HandleUserPromptCommand(@params), options).ConfigureAwait(false);
112
112
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4