Esempio n. 1
0
        public void Run(IInteractDispatcher dispatcher)
        {
            ReceiveHeader header = new ReceiveHeader(this._uid, true, this._attchmentDirectory);

            header.Interact(dispatcher);
            this._message = header.MessageCollection[0];
            new ReceivePart(this._message, this._message.RootPart, this._attchmentDirectory).Interact(dispatcher);
        }
        public void Run(IInteractDispatcher dispatcher)
        {
            ReceiveMessageText text = new ReceiveMessageText(this._uid, this._attachmentDirectory);

            text.Run(dispatcher);
            this._message = text.Message;
            foreach (Attachment attachment in this._message.Attachments)
            {
                new ReceiveAttach(this._message, attachment, this._attachmentDirectory).Interact(dispatcher);
            }
        }
Esempio n. 3
0
        public virtual CompletionResponse Interact(IInteractDispatcher dispatcher)
        {
            CompletionResponse response;

            this._dispatcher = dispatcher;
            this.StartCommand();
            try
            {
                response = this.Behaviour();
            }
            finally
            {
                this.EndCommand();
            }
            return(response);
        }