@@ -113,141 +113,141 @@ public async Task<EmptyResult> HandleUserPromptAsync(BrowsingContext context, Ha
113113
114114    public  async  Task < Subscription >  OnNavigationStartedAsync ( Func < NavigationInfo ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
115115    { 
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 ) ; 
117117    } 
118118
119119    public  async  Task < Subscription >  OnNavigationStartedAsync ( Action < NavigationInfo >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
120120    { 
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 ) ; 
122122    } 
123123
124124    public  async  Task < Subscription >  OnFragmentNavigatedAsync ( Func < NavigationInfo ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
125125    { 
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 ) ; 
127127    } 
128128
129129    public  async  Task < Subscription >  OnFragmentNavigatedAsync ( Action < NavigationInfo >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
130130    { 
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 ) ; 
132132    } 
133133
134134    public  async  Task < Subscription >  OnHistoryUpdatedAsync ( Func < HistoryUpdatedEventArgs ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
135135    { 
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 ) ; 
137137    } 
138138
139139    public  async  Task < Subscription >  OnHistoryUpdatedAsync ( Action < HistoryUpdatedEventArgs >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
140140    { 
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 ) ; 
142142    } 
143143
144144    public  async  Task < Subscription >  OnDomContentLoadedAsync ( Func < NavigationInfo ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
145145    { 
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 ) ; 
147147    } 
148148
149149    public  async  Task < Subscription >  OnDomContentLoadedAsync ( Action < NavigationInfo >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
150150    { 
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 ) ; 
152152    } 
153153
154154    public  async  Task < Subscription >  OnLoadAsync ( Func < NavigationInfo ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
155155    { 
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 ) ; 
157157    } 
158158
159159    public  async  Task < Subscription >  OnLoadAsync ( Action < NavigationInfo >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
160160    { 
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 ) ; 
162162    } 
163163
164164    public  async  Task < Subscription >  OnDownloadWillBeginAsync ( Func < DownloadWillBeginEventArgs ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
165165    { 
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 ) ; 
167167    } 
168168
169169    public  async  Task < Subscription >  OnDownloadWillBeginAsync ( Action < DownloadWillBeginEventArgs >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
170170    { 
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 ) ; 
172172    } 
173173
174174    public  async  Task < Subscription >  OnDownloadEndAsync ( Func < DownloadEndEventArgs ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
175175    { 
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 ) ; 
177177    } 
178178
179179    public  async  Task < Subscription >  OnDownloadEndAsync ( Action < DownloadEndEventArgs >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
180180    { 
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 ) ; 
182182    } 
183183
184184    public  async  Task < Subscription >  OnNavigationAbortedAsync ( Func < NavigationInfo ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
185185    { 
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 ) ; 
187187    } 
188188
189189    public  async  Task < Subscription >  OnNavigationAbortedAsync ( Action < NavigationInfo >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
190190    { 
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 ) ; 
192192    } 
193193
194194    public  async  Task < Subscription >  OnNavigationFailedAsync ( Func < NavigationInfo ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
195195    { 
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 ) ; 
197197    } 
198198
199199    public  async  Task < Subscription >  OnNavigationFailedAsync ( Action < NavigationInfo >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
200200    { 
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 ) ; 
202202    } 
203203
204204    public  async  Task < Subscription >  OnNavigationCommittedAsync ( Func < NavigationInfo ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
205205    { 
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 ) ; 
207207    } 
208208
209209    public  async  Task < Subscription >  OnNavigationCommittedAsync ( Action < NavigationInfo >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
210210    { 
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 ) ; 
212212    } 
213213
214214    public  async  Task < Subscription >  OnContextCreatedAsync ( Func < BrowsingContextInfo ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
215215    { 
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 ) ; 
217217    } 
218218
219219    public  async  Task < Subscription >  OnContextCreatedAsync ( Action < BrowsingContextInfo >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
220220    { 
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 ) ; 
222222    } 
223223
224224    public  async  Task < Subscription >  OnContextDestroyedAsync ( Func < BrowsingContextInfo ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
225225    { 
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 ) ; 
227227    } 
228228
229229    public  async  Task < Subscription >  OnContextDestroyedAsync ( Action < BrowsingContextInfo >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
230230    { 
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 ) ; 
232232    } 
233233
234234    public  async  Task < Subscription >  OnUserPromptOpenedAsync ( Func < UserPromptOpenedEventArgs ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
235235    { 
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 ) ; 
237237    } 
238238
239239    public  async  Task < Subscription >  OnUserPromptOpenedAsync ( Action < UserPromptOpenedEventArgs >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
240240    { 
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 ) ; 
242242    } 
243243
244244    public  async  Task < Subscription >  OnUserPromptClosedAsync ( Func < UserPromptClosedEventArgs ,  Task >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
245245    { 
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 ) ; 
247247    } 
248248
249249    public  async  Task < Subscription >  OnUserPromptClosedAsync ( Action < UserPromptClosedEventArgs >  handler ,  BrowsingContextsSubscriptionOptions ?  options  =  null ) 
250250    { 
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 ) ; 
252252    } 
253253} 
0 commit comments