public static StreamAction Append(Guid streamId, params object[] events) { var stream = new StreamAction(streamId, StreamActionType.Append); stream.AddEvents(events); return(stream); }
/// <summary> /// Create a new StreamAction for appending to an existing stream /// </summary> /// <param name="streamId"></param> /// <param name="events"></param> /// <returns></returns> public static StreamAction Append(EventGraph graph, Guid streamId, params object[] events) { var stream = new StreamAction(streamId, StreamActionType.Append); stream.AddEvents(events.Select(graph.BuildEvent).ToArray()); return(stream); }