Exemplo n.º 1
0
        public static void Publish(T selectedItem, string requestedEvent, string expectedEvent, string data)
        {
            var request = new OperationRequest <T>(selectedItem, expectedEvent)
            {
                Data = data
            };

            request.PublishEvent(requestedEvent);
        }
Exemplo n.º 2
0
        public static void Publish(T selectedItem, string requestedEvent, string expectedEvent, string data, bool wait = false)
        {
            OperationRequest <T> operationRequest = new OperationRequest <T>(selectedItem, expectedEvent)
            {
                Data = data
            };

            operationRequest.PublishEvent <OperationRequest <T> >(requestedEvent, wait);
        }