public DdpMethodHandler(WebSocketAdapterBase webSocketAdapterBase, Action <DetailedError, T> callback, string id) { _webSocketAdapterBase = webSocketAdapterBase; _callback = callback; _webSocketAdapterBase.DdpMessage += OnDdpMessage; Id = id; }
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(); }
public DdpConnection(WebSocketAdapterBase webSocketAdapter) { _webSocketAdapter = webSocketAdapter; Initialize(); }