public static class CsWebUiBridgeExtensions Creates Bridge transports for CS-WebUI windows.
Methods
CreateBridgeSession
public static IBridgeTransport CreateBridgeSession(this WebUiWindow window) Creates the Views transport of window.
Remarks
The transport binds one function, __runicViews, which runic-cswebui.js calls with each request, and the window's all-events binding, through which it learns of closed connections. CS-WebUI cannot remove a binding before its window closes, so the binding stays while the window's request handler changes; a request while none is served gets the released reply. The returned object is also IDisposable: dispose it before disposing window.