Example #1
0
        internal void Dispatch()
        {
            FramingData framingData = app.EndDequeue(app.BeginDequeue());

            controlCallback.Dispatch(framingData);

            UdpListenerAdapter.Dispatch(data, this);
        }
Example #2
0
        public static void Stop()
        {
            if (singleton == null)
            {
                throw new InvalidOperationException("The UdpListenerAdapter is not started.");
            }

            singleton.Close();
            singleton = null;
        }
Example #3
0
        public static void Start()
        {
            if (singleton != null)
            {
                throw new InvalidOperationException("Only one instance of UdpListenerAdapter is allowed.");
            }

            singleton = new UdpListenerAdapter();
            singleton.Open();
        }
        public static void Stop()
        {
            if (singleton == null)
            {
                throw new InvalidOperationException("The UdpListenerAdapter is not started.");
            }

            singleton.Close();
            singleton = null;
        }
        public static void Start()
        {
            if (singleton != null)
            {
                throw new InvalidOperationException("Only one instance of UdpListenerAdapter is allowed.");
            }

            singleton = new UdpListenerAdapter();
            singleton.Open();
        }
Example #6
0
 public void Register(ControlRegistrationData data)
 {
     this.data = data;
     UdpListenerAdapter.Register(data, this);
     controlCallback = OperationContext.Current.GetCallbackChannel <IUdpControlCallback>();
 }