Exemplo n.º 1
0
 /// <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);
Exemplo n.º 2
0
 /// <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);
Exemplo n.º 3
0
 public StreamInput(string stream, IEnumerable <MessageInput> messages) : this(stream, ConcurrencyCheck.Skip(), messages)
 {
 }