Skip to content

Commit

Permalink
feat: Allow "option" to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
titouancreach committed Apr 24, 2023
1 parent e24b267 commit 20f975f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Unitee.EventDriven.RedisStream/RedisStreamPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public async Task<RedisValue> PublishAsync<TMessage>(TMessage message, MessageOp
}


public async Task<U> RequestResponseAsync<T, U>(T message, MessageOptions options, ReplyOptions? replyOptions = null)
public async Task<U> RequestResponseAsync<T, U>(T message, MessageOptions? options = null, ReplyOptions? replyOptions = null)
{
var sessionId = options.SessionId ?? Guid.NewGuid().ToString();
var sessionId = options?.SessionId ?? Guid.NewGuid().ToString();
var subject = MessageHelper.GetSubject<T>();
var uniqueName = $"{subject}_{sessionId}";
var db = _redis.GetDatabase();
Expand Down

0 comments on commit 20f975f

Please sign in to comment.