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

Method Deliver

dotnet/src/webdriver/BiDi/EventStream.cs:47–57  ·  view source on GitHub ↗
(string method, EventArgs args)

Source from the content-addressed store, hash-verified

45 }
46
47 void ISubscriptionSink.Deliver(string method, EventArgs args)
48 {
49 if (args is not TEventArgs typed)
50 {
51 throw new InvalidOperationException($"Cannot deliver '{args.GetType()}' to stream expecting '{typeof(TEventArgs)}'.");
52 }
53
54 if (_filter is { } f && !f(typed)) return;
55
56 _channel.Writer.TryWrite((method, typed));
57 }
58
59 void ISubscriptionSink.Complete(Exception? error)
60 {

Callers 1

Calls 1

fFunction · 0.50

Tested by

no test coverage detected