@@ -113,141 +113,141 @@ public async Task<EmptyResult> HandleUserPromptAsync(BrowsingContext context, Ha
113
113
114
114
public async Task < Subscription > OnNavigationStartedAsync ( Func < NavigationInfo , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
115
115
{
116
- return await Broker . SubscribeAsync ( "browsingContext.navigationStarted" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
116
+ return await Broker . SubscribeAsync ( "browsingContext.navigationStarted" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
117
117
}
118
118
119
119
public async Task < Subscription > OnNavigationStartedAsync ( Action < NavigationInfo > handler , BrowsingContextsSubscriptionOptions ? options = null )
120
120
{
121
- return await Broker . SubscribeAsync ( "browsingContext.navigationStarted" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
121
+ return await Broker . SubscribeAsync ( "browsingContext.navigationStarted" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
122
122
}
123
123
124
124
public async Task < Subscription > OnFragmentNavigatedAsync ( Func < NavigationInfo , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
125
125
{
126
- return await Broker . SubscribeAsync ( "browsingContext.fragmentNavigated" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
126
+ return await Broker . SubscribeAsync ( "browsingContext.fragmentNavigated" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
127
127
}
128
128
129
129
public async Task < Subscription > OnFragmentNavigatedAsync ( Action < NavigationInfo > handler , BrowsingContextsSubscriptionOptions ? options = null )
130
130
{
131
- return await Broker . SubscribeAsync ( "browsingContext.fragmentNavigated" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
131
+ return await Broker . SubscribeAsync ( "browsingContext.fragmentNavigated" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
132
132
}
133
133
134
134
public async Task < Subscription > OnHistoryUpdatedAsync ( Func < HistoryUpdatedEventArgs , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
135
135
{
136
- return await Broker . SubscribeAsync ( "browsingContext.historyUpdated" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
136
+ return await Broker . SubscribeAsync ( "browsingContext.historyUpdated" , handler , options , JsonContext . HistoryUpdatedEventArgs ) . ConfigureAwait ( false ) ;
137
137
}
138
138
139
139
public async Task < Subscription > OnHistoryUpdatedAsync ( Action < HistoryUpdatedEventArgs > handler , BrowsingContextsSubscriptionOptions ? options = null )
140
140
{
141
- return await Broker . SubscribeAsync ( "browsingContext.historyUpdated" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
141
+ return await Broker . SubscribeAsync ( "browsingContext.historyUpdated" , handler , options , JsonContext . HistoryUpdatedEventArgs ) . ConfigureAwait ( false ) ;
142
142
}
143
143
144
144
public async Task < Subscription > OnDomContentLoadedAsync ( Func < NavigationInfo , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
145
145
{
146
- return await Broker . SubscribeAsync ( "browsingContext.domContentLoaded" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
146
+ return await Broker . SubscribeAsync ( "browsingContext.domContentLoaded" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
147
147
}
148
148
149
149
public async Task < Subscription > OnDomContentLoadedAsync ( Action < NavigationInfo > handler , BrowsingContextsSubscriptionOptions ? options = null )
150
150
{
151
- return await Broker . SubscribeAsync ( "browsingContext.domContentLoaded" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
151
+ return await Broker . SubscribeAsync ( "browsingContext.domContentLoaded" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
152
152
}
153
153
154
154
public async Task < Subscription > OnLoadAsync ( Func < NavigationInfo , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
155
155
{
156
- return await Broker . SubscribeAsync ( "browsingContext.load" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
156
+ return await Broker . SubscribeAsync ( "browsingContext.load" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
157
157
}
158
158
159
159
public async Task < Subscription > OnLoadAsync ( Action < NavigationInfo > handler , BrowsingContextsSubscriptionOptions ? options = null )
160
160
{
161
- return await Broker . SubscribeAsync ( "browsingContext.load" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
161
+ return await Broker . SubscribeAsync ( "browsingContext.load" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
162
162
}
163
163
164
164
public async Task < Subscription > OnDownloadWillBeginAsync ( Func < DownloadWillBeginEventArgs , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
165
165
{
166
- return await Broker . SubscribeAsync ( "browsingContext.downloadWillBegin" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
166
+ return await Broker . SubscribeAsync ( "browsingContext.downloadWillBegin" , handler , options , JsonContext . DownloadWillBeginEventArgs ) . ConfigureAwait ( false ) ;
167
167
}
168
168
169
169
public async Task < Subscription > OnDownloadWillBeginAsync ( Action < DownloadWillBeginEventArgs > handler , BrowsingContextsSubscriptionOptions ? options = null )
170
170
{
171
- return await Broker . SubscribeAsync ( "browsingContext.downloadWillBegin" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
171
+ return await Broker . SubscribeAsync ( "browsingContext.downloadWillBegin" , handler , options , JsonContext . DownloadWillBeginEventArgs ) . ConfigureAwait ( false ) ;
172
172
}
173
173
174
174
public async Task < Subscription > OnDownloadEndAsync ( Func < DownloadEndEventArgs , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
175
175
{
176
- return await Broker . SubscribeAsync ( "browsingContext.downloadEnd" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
176
+ return await Broker . SubscribeAsync ( "browsingContext.downloadEnd" , handler , options , JsonContext . DownloadEndEventArgs ) . ConfigureAwait ( false ) ;
177
177
}
178
178
179
179
public async Task < Subscription > OnDownloadEndAsync ( Action < DownloadEndEventArgs > handler , BrowsingContextsSubscriptionOptions ? options = null )
180
180
{
181
- return await Broker . SubscribeAsync ( "browsingContext.downloadEnd" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
181
+ return await Broker . SubscribeAsync ( "browsingContext.downloadEnd" , handler , options , JsonContext . DownloadEndEventArgs ) . ConfigureAwait ( false ) ;
182
182
}
183
183
184
184
public async Task < Subscription > OnNavigationAbortedAsync ( Func < NavigationInfo , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
185
185
{
186
- return await Broker . SubscribeAsync ( "browsingContext.navigationAborted" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
186
+ return await Broker . SubscribeAsync ( "browsingContext.navigationAborted" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
187
187
}
188
188
189
189
public async Task < Subscription > OnNavigationAbortedAsync ( Action < NavigationInfo > handler , BrowsingContextsSubscriptionOptions ? options = null )
190
190
{
191
- return await Broker . SubscribeAsync ( "browsingContext.navigationAborted" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
191
+ return await Broker . SubscribeAsync ( "browsingContext.navigationAborted" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
192
192
}
193
193
194
194
public async Task < Subscription > OnNavigationFailedAsync ( Func < NavigationInfo , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
195
195
{
196
- return await Broker . SubscribeAsync ( "browsingContext.navigationFailed" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
196
+ return await Broker . SubscribeAsync ( "browsingContext.navigationFailed" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
197
197
}
198
198
199
199
public async Task < Subscription > OnNavigationFailedAsync ( Action < NavigationInfo > handler , BrowsingContextsSubscriptionOptions ? options = null )
200
200
{
201
- return await Broker . SubscribeAsync ( "browsingContext.navigationFailed" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
201
+ return await Broker . SubscribeAsync ( "browsingContext.navigationFailed" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
202
202
}
203
203
204
204
public async Task < Subscription > OnNavigationCommittedAsync ( Func < NavigationInfo , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
205
205
{
206
- return await Broker . SubscribeAsync ( "browsingContext.navigationCommitted" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
206
+ return await Broker . SubscribeAsync ( "browsingContext.navigationCommitted" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
207
207
}
208
208
209
209
public async Task < Subscription > OnNavigationCommittedAsync ( Action < NavigationInfo > handler , BrowsingContextsSubscriptionOptions ? options = null )
210
210
{
211
- return await Broker . SubscribeAsync ( "browsingContext.navigationCommitted" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
211
+ return await Broker . SubscribeAsync ( "browsingContext.navigationCommitted" , handler , options , JsonContext . NavigationInfo ) . ConfigureAwait ( false ) ;
212
212
}
213
213
214
214
public async Task < Subscription > OnContextCreatedAsync ( Func < BrowsingContextInfo , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
215
215
{
216
- return await Broker . SubscribeAsync ( "browsingContext.contextCreated" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
216
+ return await Broker . SubscribeAsync ( "browsingContext.contextCreated" , handler , options , JsonContext . BrowsingContextInfo ) . ConfigureAwait ( false ) ;
217
217
}
218
218
219
219
public async Task < Subscription > OnContextCreatedAsync ( Action < BrowsingContextInfo > handler , BrowsingContextsSubscriptionOptions ? options = null )
220
220
{
221
- return await Broker . SubscribeAsync ( "browsingContext.contextCreated" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
221
+ return await Broker . SubscribeAsync ( "browsingContext.contextCreated" , handler , options , JsonContext . BrowsingContextInfo ) . ConfigureAwait ( false ) ;
222
222
}
223
223
224
224
public async Task < Subscription > OnContextDestroyedAsync ( Func < BrowsingContextInfo , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
225
225
{
226
- return await Broker . SubscribeAsync ( "browsingContext.contextDestroyed" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
226
+ return await Broker . SubscribeAsync ( "browsingContext.contextDestroyed" , handler , options , JsonContext . BrowsingContextInfo ) . ConfigureAwait ( false ) ;
227
227
}
228
228
229
229
public async Task < Subscription > OnContextDestroyedAsync ( Action < BrowsingContextInfo > handler , BrowsingContextsSubscriptionOptions ? options = null )
230
230
{
231
- return await Broker . SubscribeAsync ( "browsingContext.contextDestroyed" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
231
+ return await Broker . SubscribeAsync ( "browsingContext.contextDestroyed" , handler , options , JsonContext . BrowsingContextInfo ) . ConfigureAwait ( false ) ;
232
232
}
233
233
234
234
public async Task < Subscription > OnUserPromptOpenedAsync ( Func < UserPromptOpenedEventArgs , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
235
235
{
236
- return await Broker . SubscribeAsync ( "browsingContext.userPromptOpened" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
236
+ return await Broker . SubscribeAsync ( "browsingContext.userPromptOpened" , handler , options , JsonContext . UserPromptOpenedEventArgs ) . ConfigureAwait ( false ) ;
237
237
}
238
238
239
239
public async Task < Subscription > OnUserPromptOpenedAsync ( Action < UserPromptOpenedEventArgs > handler , BrowsingContextsSubscriptionOptions ? options = null )
240
240
{
241
- return await Broker . SubscribeAsync ( "browsingContext.userPromptOpened" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
241
+ return await Broker . SubscribeAsync ( "browsingContext.userPromptOpened" , handler , options , JsonContext . UserPromptOpenedEventArgs ) . ConfigureAwait ( false ) ;
242
242
}
243
243
244
244
public async Task < Subscription > OnUserPromptClosedAsync ( Func < UserPromptClosedEventArgs , Task > handler , BrowsingContextsSubscriptionOptions ? options = null )
245
245
{
246
- return await Broker . SubscribeAsync ( "browsingContext.userPromptClosed" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
246
+ return await Broker . SubscribeAsync ( "browsingContext.userPromptClosed" , handler , options , JsonContext . UserPromptClosedEventArgs ) . ConfigureAwait ( false ) ;
247
247
}
248
248
249
249
public async Task < Subscription > OnUserPromptClosedAsync ( Action < UserPromptClosedEventArgs > handler , BrowsingContextsSubscriptionOptions ? options = null )
250
250
{
251
- return await Broker . SubscribeAsync ( "browsingContext.userPromptClosed" , handler , options , JsonContext ) . ConfigureAwait ( false ) ;
251
+ return await Broker . SubscribeAsync ( "browsingContext.userPromptClosed" , handler , options , JsonContext . UserPromptClosedEventArgs ) . ConfigureAwait ( false ) ;
252
252
}
253
253
}
0 commit comments