MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / OnAuthRequired

Method OnAuthRequired

dotnet/src/webdriver/DevTools/Network.cs:157–168  ·  view source on GitHub ↗

Raises the AuthRequired event. An that contains the event data.

(AuthRequiredEventArgs e)

Source from the content-addressed store, hash-verified

155 /// </summary>
156 /// <param name="e">An <see cref="AuthRequiredEventArgs"/> that contains the event data.</param>
157 protected virtual void OnAuthRequired(AuthRequiredEventArgs e)
158 {
159 var delegates = AuthRequired?.GetInvocationList();
160
161 if (delegates != null)
162 {
163 foreach (var d in delegates.Cast<AsyncEventHandler<AuthRequiredEventArgs>>())
164 {
165 Task.Run(async () => await d.Invoke(this, e)).GetAwaiter().GetResult();
166 }
167 }
168 }
169
170 /// <summary>
171 /// Raises the RequestPaused event.

Callers 3

OnFetchAuthRequiredMethod · 0.45
OnFetchAuthRequiredMethod · 0.45
OnFetchAuthRequiredMethod · 0.45

Calls 1

InvokeMethod · 0.80

Tested by

no test coverage detected