예제 #1
0
 public ItemClientSnapshot(long version, ItemClientState state)
     : base(version)
 {
     this.State = state;
 }
예제 #2
0
 public void When(NewItemCreated e) => this.state = ItemClientState.Created;
예제 #3
0
 public void When(NewItemNeedsToBeAcceptedByTheServer e) => this.state = ItemClientState.WaitingServerAproval;
예제 #4
0
 public void When(ItemCreationWasAcceptedByTheServer e) => this.state = ItemClientState.ItemAprovedByServer;
예제 #5
0
        public ItemClient(Guid id, ISnapshot snapshot) : base(id, snapshot)
        {
            var state = (ItemClientSnapshot)snapshot;

            this.state = state.State;
        }