Ejemplo n.º 1
0
        public Task CloseAsync(CancellationToken cancellationToken = default)
        {
            //do nothing.
            //In actually,we need release queue connection.
            _queue.UnSubscribe(subscribeTopic);
            OnMessageReceived = null;
            Connection        = null;

            return(Task.CompletedTask);
        }
Ejemplo n.º 2
0
 public InMemoryTransportReceiver(InMemoryQueue queue)
 {
     _queue     = queue;
     Connection = new InMemoryBrokerConnection(queue);
 }
Ejemplo n.º 3
0
 public ConversationManager(IBrokerConnection brokerManager, IStorageData storageData, Contact me)
 {
     this.brokerConnection = brokerManager;
     this.storageData      = storageData;
     this.me = me;
 }