Ejemplo n.º 1
0
 /// <summary>
 /// Gets the published events for the <paramref name="correlationId"/>.
 /// </summary>
 /// <param name="correlationId">The correlation identifier.</param>
 /// <returns>An <see cref="Beef.Events.EventData"/> array.</returns>
 public static List <EventData> GetPublishedEvents(string?correlationId = null) => ExpectEventPublisher.GetPublishedEvents(correlationId);
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the count of <see cref="IEventPublisher.SendAsync">sends</see> that were performed for the specified <paramref name="correlationId"/>.
 /// </summary>
 public static int GetSendCount(string?correlationId = null) => ExpectEventPublisher.GetSendCount(correlationId);
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the events for the <paramref name="correlationId"/>.
 /// </summary>
 /// <param name="correlationId">The correlation identifier.</param>
 /// <param name="removeEvents">Indicates whether to also <see cref="ExpectEventPublisher.Remove(string?)"/> the events.</param>
 /// <returns>An <see cref="Beef.Events.EventData"/> array.</returns>
 public static List <EventData> GetEvents(string?correlationId = null, bool removeEvents = false) => ExpectEventPublisher.GetEvents(correlationId, removeEvents);