public StompReceiveChannel(StompQueue aOwner, string aName, string aID) { this.fData = new LinkedList <byte[]>(); this.fOwner = aOwner; this.fID = aID; this.fName = aName; }
public override IReceiveChannel CreateSub(string aName) { StompQueue Self = this; if (!this.fConnected) { this.Connect(); } string lID = Guid.NewGuid().ToString("N"); IReceiveChannel Result = this.fReceivers.GetOrAdd(lID, a => new StompReceiveChannel(Self, aName, lID)); lock (fClient) { fClient.Subscribe(string.Format(this.PubSubPath, aName), lID, false); } return(Result); }
public StompSendChannel(StompQueue aOwner, string aName) { fName = aName; fOwner = aOwner; }
public StompReceiveChannel(StompQueue aOwner, string aName, string aID) { this.fData = new LinkedList<byte[]>(); this.fOwner = aOwner; this.fID = aID; this.fName = aName; }