Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ public DaprEventBusProvider(
public async Task PublishAsync(string eventName, IntegrationEvent @event)
{
_logger.LogInformation(
"Publishing IntegrationEvent, Name: {EventName}, Body: {Event}, TraceId: {TraceId}",
"Publishing IntegrationEvent, PubSub: {PubSubName}, TopicName: {TopicName}, Name: {EventName}, Body: {Event}, TraceId: {TraceId}",
DaprOptions.PubSubName,
DaprUtils.GetDaprTopicName(_daprOptions.AppName, eventName),
eventName,
@event,
@event.TraceId ?? @event.Id);
object data = @event; // do not provide type information to serializer since it's base class.
await _daprClient.PublishEventAsync(
DaprOptions.PubSubName,
DaprUtils.GetDaprTopicName(_daprOptions.AppName, eventName),
@event);
data);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private static void EnsureEventBusRegistered(this IEndpointRouteBuilder builder,
if (!serviceCheck.IsService(typeof(IEventBus)))
{
throw new InvalidOperationException(
$"{nameof(IEventBus)} has not been registered. Did you forget to call IServiceCollection.AddDaprEventBus()?");
$"{nameof(IEventBus)} has not been registered. Did you forget to call IServiceCollection.AddEventBus()?");
}

daprOptions.IsEventBusRegistered = true;
Expand Down