コード例 #1
0
ファイル: DB.cs プロジェクト: streamsdb/driver
 /// <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);
コード例 #2
0
ファイル: DB.cs プロジェクト: streamsdb/driver
 /// <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);
コード例 #3
0
ファイル: MessageInput.cs プロジェクト: streamsdb/driver
 public StreamInput(string stream, IEnumerable <MessageInput> messages) : this(stream, ConcurrencyCheck.Skip(), messages)
 {
 }