public static Launch ( IRxSpyEventHandler eventHandler, bool explicitCapture = false ) : |
||
eventHandler | IRxSpyEventHandler | |
explicitCapture | bool | |
return |
public static RxSpySession Launch(IRxSpyEventHandler eventHandler, bool explicitCapture = false)
{
var session = new RxSpySession(eventHandler, explicitCapture);
Current = session;
if (Interlocked.CompareExchange(ref _launched, 1, 0) != 0)
throw new InvalidOperationException("Session already created");
InstallInterceptingQueryLanguage(session);
return session;
}