/// <summary> /// AppendStream appends the provides messages to the specified stream. /// </summary> /// <param name="streamId">The stream to append to. If the stream does not exists, it will be created.</param> /// <param name="messages">The messages to append.</param> /// <returns>The position in the stream of the first message that has been written.</returns> public async Task <long> AppendStream(string streamId, IEnumerable <MessageInput> messages) => await AppendStream(streamId, ConcurrencyCheck.Skip(), messages);
/// <summary> /// AppendStream appends the provides messages to the specified stream. /// </summary> /// <param name="streamId">The stream to append to. If the stream does not exists, it will be created.</param> /// <param name="messages">The messages to append.</param> /// <returns>The position in the stream of the first message that has been written.</returns> public async Task <long> AppendStream(string streamId, params MessageInput[] messages) => await AppendStream(streamId, ConcurrencyCheck.Skip(), messages);
public StreamInput(string stream, IEnumerable <MessageInput> messages) : this(stream, ConcurrencyCheck.Skip(), messages) { }