Skip to content

Commit 700d8a2

Browse files
committed
Fixing compiler warning
1 parent 4841781 commit 700d8a2

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Source/Kernel/Concepts/Events/EventTypeExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static bool IsEventType(this Type type)
2222
return false;
2323
}
2424

25-
return type.GetCustomAttribute<EventTypeAttribute>() != null;
25+
return Attribute.IsDefined(type, typeof(EventTypeAttribute));
2626
}
2727

2828
/// <summary>

Source/Workbench/Embedded/WebServer.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@ public Task StartAsync(CancellationToken cancellationToken)
3939

4040
builder.Host
4141
.AddCratisArc(
42-
builder =>
42+
options =>
4343
{
44-
builder.ConfigureOptions = options =>
45-
{
46-
options.CorrelationId = workbenchOptions.Value.ArcOptions.CorrelationId;
47-
options.Tenancy = workbenchOptions.Value.ArcOptions.Tenancy;
48-
options.IdentityDetailsProvider = workbenchOptions.Value.ArcOptions.IdentityDetailsProvider;
49-
};
44+
options.CorrelationId = workbenchOptions.Value.ArcOptions.CorrelationId;
45+
options.Tenancy = workbenchOptions.Value.ArcOptions.Tenancy;
46+
options.IdentityDetailsProvider = workbenchOptions.Value.ArcOptions.IdentityDetailsProvider;
5047
});
5148

5249
builder.Services.AddCratisChronicleApi();

0 commit comments

Comments
 (0)