public void OperationCompletedLog(object sender, OperationCompletedEventArgs eventArgs)
        {
            var message = new OperationCompletedEventMessage()
            {
                Query = eventArgs.QueryText,
                ResultCount = eventArgs.ResourcesReturned,
                Time = eventArgs.TimeTaken
            };

            Publish(message);
        }
 private static void Publish(OperationCompletedEventMessage message)
 {
     broker.Publish(message);
 }