예제 #1
0
        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);
        }
예제 #2
0
 public StressTestEventHandler(IRxSpyEventHandler inner)
 {
     _inner = inner;
 }
예제 #3
0
 public StressTestEventHandler(IRxSpyEventHandler inner)
 {
     _inner = inner;
 }
예제 #4
0
 public static long OnUnsubscribe(this IRxSpyEventHandler This, long subscriptionId)
 {
     return(Publish(This.OnUnsubscribe, Event.Unsubscribe(subscriptionId)));
 }
예제 #5
0
 RxSpySession(IRxSpyEventHandler eventHandler, bool explicitCapture)
 {
     _eventHandler    = eventHandler;
     _explicitCapture = explicitCapture;
 }
예제 #6
0
 public static long OnSubscribe(this IRxSpyEventHandler This, OperatorInfo child, OperatorInfo parent)
 {
     return(Publish(This.OnSubscribe, Event.Subscribe(child, parent)));
 }
예제 #7
0
 public static long OnDisconnected(this IRxSpyEventHandler This, long subscriptionId)
 {
     return(Publish(This.OnDisconnected, Event.Disconnect(subscriptionId)));
 }
예제 #8
0
 public static long OnConnected(this IRxSpyEventHandler This, OperatorInfo operatorInfo)
 {
     return(Publish(This.OnConnected, Event.Connect(operatorInfo)));
 }
예제 #9
0
파일: RxSpySession.cs 프로젝트: niik/RxSpy
        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;
        }
예제 #10
0
파일: RxSpySession.cs 프로젝트: niik/RxSpy
 RxSpySession(IRxSpyEventHandler eventHandler, bool explicitCapture)
 {
     _eventHandler = eventHandler;
     _explicitCapture = explicitCapture;
 }