Skip to content

Commit b34b3b8

Browse files
authoredMar 19, 2024
fix:#701 (#702)
1 parent 7012964 commit b34b3b8

File tree

1 file changed

+6
-6
lines changed
  • src/Contrib/Dispatcher/IntegrationEvents/Masa.Contrib.Dispatcher.IntegrationEvents.Dapr

1 file changed

+6
-6
lines changed
 

‎src/Contrib/Dispatcher/IntegrationEvents/Masa.Contrib.Dispatcher.IntegrationEvents.Dapr/Publisher.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) MASA Stack All rights reserved.
1+
// Copyright (c) MASA Stack All rights reserved.
22
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
33

44
namespace Masa.Contrib.Dispatcher.IntegrationEvents.Dapr;
@@ -19,18 +19,18 @@ public Publisher(IServiceProvider serviceProvider, string pubSubName, string app
1919
_serviceProvider = serviceProvider;
2020
_logger = serviceProvider.GetService<ILogger<Publisher>>();
2121
_pubSubName = pubSubName;
22+
_appId = appId;
23+
_daprAppId = daprAppId;
24+
2225
if (serviceProvider.EnableIsolation())
2326
{
24-
if (_daprAppId.IsNullOrWhiteSpace()) _logger?.LogError("Isolation is enabled but dapr AppId required for integration events is not configured");
27+
if (_daprAppId.IsNullOrWhiteSpace())
28+
_logger?.LogError("Isolation is enabled but dapr AppId required for integration events is not configured");
2529

2630
MasaArgumentException.ThrowIfNullOrWhiteSpace(daprAppId);
2731
}
28-
29-
_appId = appId;
30-
_daprAppId = daprAppId;
3132
}
3233

33-
3434
public async Task PublishAsync<T>(
3535
string topicName,
3636
T @event,

0 commit comments

Comments
 (0)