Raises the AuthRequired event. An that contains the event data.
(AuthRequiredEventArgs e)
| 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. |
no test coverage detected