Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasohlund committed Oct 23, 2024
1 parent 633381b commit 4093c3a
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ public void It_should_not_throw_an_exception()
.Run()
);

public class SomeMessage : IMessage
{
public Guid BusinessId { get; set; }
}

// HINT: This will get picked up by the AssemblyRouteSource created by the routing call below
// Even though it is not a message type, it is still checked by passing it to conventions.
// The conventions added by Sagas were throwing an exception when passed a ref struct.
Expand All @@ -38,7 +33,6 @@ public EndpointWithASaga() => EndpointSetup<DefaultServer>(cfg => cfg
)
);


class RealSagaToSetUpConventions : Saga<RealSagaToSetUpConventions.RealSagaToSetUpConventionsSagaData>, IAmStartedByMessages<SomeMessage>
{
public Task Handle(SomeMessage message, IMessageHandlerContext context) => Task.CompletedTask;
Expand All @@ -51,4 +45,9 @@ public class RealSagaToSetUpConventionsSagaData : ContainSagaData
}
}
}

public class SomeMessage : IMessage
{
public Guid BusinessId { get; set; }
}
}

0 comments on commit 4093c3a

Please sign in to comment.