コード例 #1
0
        public virtual IEnumerator <ccr.ITask> SubscribeHandler(Subscribe subscribe)
        {
            dssp.SubscribeRequestType request = subscribe.Body;

            yield return(ccr.Arbiter.Choice(
                             SubscribeHelper(_subMgr, request, subscribe.ResponsePort),
                             delegate(ccr.SuccessResult success)
            {
                base.SendNotificationToTarget <Replace>(request.Subscriber, _subMgr, _state);
            },
                             delegate(Exception e) { }
                             ));
        }
コード例 #2
0
        /// <summary>
        /// Post Subscribe with body and return the response port.
        /// </summary>
        public virtual PortSet <Microsoft.Dss.ServiceModel.Dssp.SubscribeResponseType, Fault> Subscribe(Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType body, IPort notificationPort)
        {
            Subscribe op = new Subscribe();

            op.Body             = body ?? new Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType();
            op.NotificationPort = notificationPort;
            this.PostUnknownType(op);
            return(op.ResponsePort);
        }