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

            request.PublishEvent(requestedEvent);
        }
Beispiel #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);
        }