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); }
public StressTestEventHandler(IRxSpyEventHandler inner) { _inner = inner; }
public static long OnUnsubscribe(this IRxSpyEventHandler This, long subscriptionId) { return(Publish(This.OnUnsubscribe, Event.Unsubscribe(subscriptionId))); }
RxSpySession(IRxSpyEventHandler eventHandler, bool explicitCapture) { _eventHandler = eventHandler; _explicitCapture = explicitCapture; }
public static long OnSubscribe(this IRxSpyEventHandler This, OperatorInfo child, OperatorInfo parent) { return(Publish(This.OnSubscribe, Event.Subscribe(child, parent))); }
public static long OnDisconnected(this IRxSpyEventHandler This, long subscriptionId) { return(Publish(This.OnDisconnected, Event.Disconnect(subscriptionId))); }
public static long OnConnected(this IRxSpyEventHandler This, OperatorInfo operatorInfo) { return(Publish(This.OnConnected, Event.Connect(operatorInfo))); }
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; }