Skip to content

Commit 1b536c5

Browse files
committed
Fixed Wolverine Helpdesk sample
1 parent 7cb6437 commit 1b536c5

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

Sample/Helpdesk.Wolverine/Helpdesk.Api/Incidents/GettingCustomerIncidents/IncidentShortInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public record IncidentShortInfo(
1111
IncidentPriority? Priority = null
1212
);
1313

14-
public class IncidentShortInfoProjection: SingleStreamProjection<IncidentShortInfo, string>
14+
public class IncidentShortInfoProjection: SingleStreamProjection<IncidentShortInfo, Guid>
1515
{
1616
public static IncidentShortInfo Create(IncidentLogged logged) =>
1717
new(logged.IncidentId, logged.CustomerId, IncidentStatus.Pending, 0);

Sample/Helpdesk.Wolverine/Helpdesk.Api/Incidents/GettingDetails/IncidentDetails.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public enum IncidentNoteType
2626
FromCustomer
2727
}
2828

29-
public class IncidentDetailsProjection: SingleStreamProjection<IncidentDetails, string>
29+
public class IncidentDetailsProjection: SingleStreamProjection<IncidentDetails, Guid>
3030
{
3131
public static IncidentDetails Create(IncidentLogged logged) =>
3232
new(logged.IncidentId, logged.CustomerId, IncidentStatus.Pending, []);

Sample/Helpdesk.Wolverine/Helpdesk.Api/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Helpdesk.Api.Incidents;
66
using JasperFx;
77
using JasperFx.CodeGeneration;
8+
using JasperFx.Events;
89
using JasperFx.Events.Daemon;
910
using JasperFx.Resources;
1011
using Marten;
@@ -41,6 +42,8 @@
4142
casing: Casing.CamelCase
4243
);
4344

45+
options.Events.StreamIdentity = StreamIdentity.AsGuid;
46+
4447
options.Projections.Errors.SkipApplyErrors = false;
4548
options.Projections.Errors.SkipSerializationErrors = false;
4649
options.Projections.Errors.SkipUnknownEvents = false;
@@ -85,6 +88,8 @@
8588
o.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter()))
8689
.AddSignalR();
8790

91+
builder.Services.AddAuthentication();
92+
8893
builder.Host.ApplyJasperFxExtensions();
8994
// Configure Wolverine
9095
builder.Host.UseWolverine(opts =>

Sample/MeetingsManagement/MeetingsManagement/Meetings/GettingMeeting/MeetingView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class MeetingView
1919
public int Version { get; set; }
2020
}
2121

22-
public class MeetingViewProjection: SingleStreamProjection<MeetingView, string>
22+
public class MeetingViewProjection: SingleStreamProjection<MeetingView, Guid>
2323
{
2424
public void Apply(MeetingCreated @event, MeetingView view)
2525
{

0 commit comments

Comments
 (0)