예제 #1
0
        public DdpMethodHandler(WebSocketAdapterBase webSocketAdapterBase, Action <DetailedError, T> callback, string id)
        {
            _webSocketAdapterBase             = webSocketAdapterBase;
            _callback                         = callback;
            _webSocketAdapterBase.DdpMessage += OnDdpMessage;

            Id = id;
        }
예제 #2
0
        internal DdpSubscriber(WebSocketAdapterBase webSocketAdapter, string name)
        {
            _webSocketAdapterBase             = webSocketAdapter;
            _webSocketAdapterBase.DdpMessage += OnDdpMessage;

            Name        = name;
            Subscribers = new List <IDdpSubscriber <T> >();
        }
        public DdpSubHandler(WebSocketAdapterBase webSocketAdapterBase, string subName, params object[] subParams)
        {
            _webSocketAdapterBase             = webSocketAdapterBase;
            _webSocketAdapterBase.DdpMessage += Message;

            Params = subParams;
            Name   = subName;
            Id     = DdpUtil.GetRandomId();
        }
예제 #4
0
        public DdpSubHandler(WebSocketAdapterBase webSocketAdapterBase, string subName, params object[] subParams)
        {
            _webSocketAdapterBase = webSocketAdapterBase;
            _webSocketAdapterBase.DdpMessage += Message;

            Params = subParams;
            Name = subName;
            Id = DdpUtil.GetRandomId();
        }
예제 #5
0
 public DdpConnection(WebSocketAdapterBase webSocketAdapter)
 {
     _webSocketAdapter = webSocketAdapter;
     Initialize();
 }