Example #1
0
        /// <summary>
        /// 删除由于接受调用结果而创建的临时队列
        /// </summary>
        /// <param name="eventName"></param>
        /// <param name="eventId"></param>
        internal static void CleanupRemoteEventResult(string eventName, Guid eventId)
        {
            var raiseResultEventName = EventUtil.GetRaiseResult(eventName, eventId);

            EventPortal.Cleanup(raiseResultEventName);
        }
Example #2
0
        /// <summary>
        /// 订阅远程事件的返回结果的事件
        /// </summary>
        internal static void SubscribeRemoteEventResult(string eventName, Guid eventId)
        {
            var raiseResultEventName = EventUtil.GetRaiseResult(eventName, eventId);

            EventPortal.Subscribe(raiseResultEventName, ReceiveResultEventHandler.Instance);
        }