Skip to content

Commit a070d54

Browse files
committed
Fix Wolverine version compat
1 parent 1aebd84 commit a070d54

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/Verify.Wolverine/Converters/DestinationEndpoint.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ public Task<T> InvokeAsync<T>(object message, Cancel cancel = default, TimeSpan?
1919
where T : class =>
2020
context.AddInvoke<T>(message, timeout, EndpointName);
2121

22+
public Task<Acknowledgement> InvokeAsync(object message, DeliveryOptions options, Cancel cancel = default, TimeSpan? timeout = null)
23+
{
24+
context.AddInvoke(message, timeout, EndpointName);
25+
return Task.FromResult(new Acknowledgement());
26+
}
27+
28+
public Task<T> InvokeAsync<T>(object message, DeliveryOptions options, Cancel cancel = default, TimeSpan? timeout = null)
29+
where T : class =>
30+
context.AddInvoke<T>(message, timeout, EndpointName);
31+
2232
public ValueTask SendRawMessageAsync(byte[] data, Type? messageType = null, Action<Envelope>? customize = null) =>
2333
ValueTask.CompletedTask;
2434

src/Verify.Wolverine/Converters/RecordingMessageContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ public RecordingMessageContext(object? message = null, PreviewSubscription? prev
1919
public string? CorrelationId { get; set; }
2020
public Envelope? Envelope { get; }
2121
public string? TenantId { get; set; }
22+
public string? UserName { get; set; }
2223
}

0 commit comments

Comments
 (0)