Exemplo n.º 1
0
 protected override void RecoverState(object state)
 {
     state.Match()
     .With <CategoryState>(x =>
     {
         x.Events = this;
         _state   = x;
     });
 }
Exemplo n.º 2
0
        public Category(AggregateRootCreationParameters parameters)
            : base(parameters)
        {
            _state = new CategoryState {
                EventSink = this
            };

            // register sagas
            ActorSelections = new HashSet <ActorSelection>
            {
                Context.ActorSelection("/user/category-status-broadcaster-group")
            };
        }
Exemplo n.º 3
0
 public Category(AggregateRootCreationParameters parameters)
     : base(parameters)
 {
     _state = new CategoryState(this);
 }