Asynchronously stops monitoring for network traffic. A task that represents the asynchronous operation.
()
| 85 | /// </summary> |
| 86 | /// <returns>A task that represents the asynchronous operation.</returns> |
| 87 | [RequiresUnreferencedCode("Network monitoring is currently implemented with CDP. When it is implemented with BiDi, AOT will be supported")] |
| 88 | [RequiresDynamicCode("Network monitoring is currently implemented with CDP. When it is implemented with BiDi, AOT will be supported.")] |
| 89 | public async Task StopMonitoring() |
| 90 | { |
| 91 | this.session.Value.Domains.Network.ResponsePaused -= OnResponsePaused; |
| 92 | this.session.Value.Domains.Network.AuthRequired -= OnAuthRequired; |
| 93 | this.session.Value.Domains.Network.RequestPaused -= OnRequestPaused; |
| 94 | await this.session.Value.Domains.Network.EnableNetworkCaching().ConfigureAwait(false); |
| 95 | await this.session.Value.Domains.Network.DisableNetwork().ConfigureAwait(false); |
| 96 | await this.session.Value.Domains.Network.DisableFetch().ConfigureAwait(false); |
| 97 | } |
| 98 | |
| 99 | /// <summary> |
| 100 | /// Adds a <see cref="NetworkRequestHandler"/> to examine incoming network requests, |
nothing calls this directly
no test coverage detected