/// <summary> /// /// </summary> /// <param name="snapshot"></param> /// <param name="eventStore"></param> /// <param name="documentEvent"></param> public DefaultDocumentStore(ISnapshotStore snapshot, IEventStore eventStore, IDocumentEvent documentEvent) { this._snapshot = snapshot; this._eventStore = eventStore; this._documentEvent = documentEvent; }
public void W3CTS_EventTargetCast01() { IDocument document = LoadDocument("hc_staff.xml"); IDocumentEvent documentEvent = (IDocumentEvent)document; }
public void ChangedUpdate(IDocumentEvent e) { this._enclosing.EnableOpenButton(); }
public void RemoveUpdate(IDocumentEvent e) { this._enclosing.EnableOpenButton(); }
/// <summary> /// 附加到文档 /// </summary> /// <param name="documentEvent"></param> /// <param name="document"></param> /// <param name="events"></param> public static void Append(this IDocumentEvent documentEvent, IDocument document, IEnumerable <IEvent> events) { documentEvent.AppendAsync(document, events) .Wait(); }