Ejemplo n.º 1
0
 protected PersistentView()
 {
     LastSequenceNr = 0L;
     Extension      = Persistence.Instance.Apply(Context.System);
     _viewSettings  = Extension.Settings.View;
     _internalStash = CreateStash();
     _currentState  = RecoveryPending();
 }
Ejemplo n.º 2
0
 public ActorAccess(IUntypedActorContext context, Tuple <InjectedActors, InjectedActors, InjectedActors, InjectedActors> actorChildren, MockActorBase actorItSelf, IStash stash, Action <Receive> become)
 {
     Context       = context;
     ActorItSelf   = actorItSelf;
     ActorChildren = actorChildren;
     Stash         = stash;
     Become        = become;
 }
 protected PersistentView()
 {
     LastSequenceNr = 0L;
     Extension      = Persistence.Instance.Apply(Context.System);
     _viewSettings  = Extension.Settings.View;
     _internalStash = CreateStash();
     _currentState  = RecoveryStarted(long.MaxValue);
     _log           = Context.GetLogger();
 }
Ejemplo n.º 4
0
        protected Eventsourced()
        {
            LastSequenceNr = 0L;

            Extension            = Persistence.Instance.Apply(Context.System);
            _instanceId          = InstanceCounter.GetAndIncrement();
            _maxMessageBatchSize = Extension.Settings.Journal.MaxMessageBatchSize;
            _currentState        = RecoveryPending();
            _internalStash       = CreateStash();
        }
Ejemplo n.º 5
0
        protected Eventsourced()
        {
            LastSequenceNr     = 0L;
            _isWriteInProgress = false;
            _sequenceNr        = 0L;

            Extension      = Persistence.Instance.Apply(Context.System);
            _instanceId    = InstanceCounter.GetAndIncrement();
            _writerGuid    = Guid.NewGuid().ToString();
            _currentState  = null;
            _internalStash = CreateStash();
            _log           = Context.GetLogger();
        }
Ejemplo n.º 6
0
 public Player(string name, IStash stash)
     : base(name, stash)
 {
 }
Ejemplo n.º 7
0
 public InternalStashAwareStash(IStash userStash, IStash internalStash)
 {
     _userStash     = userStash;
     _internalStash = internalStash;
 }
Ejemplo n.º 8
0
 protected EventsourcedView()
 {
     messageStash   = Context.CreateStash(this);
     InstanceId     = instanceIdCounter.GetAndIncrement();
     ReplaySettings = ReplaySettings.Create(Context.System);
 }
Ejemplo n.º 9
0
 protected PersistentView()
 {
     LastSequenceNr = 0L;
     Extension = Persistence.Instance.Apply(Context.System);
     _viewSettings = Extension.Settings.View;
     _internalStash = CreateStash();
     _currentState = RecoveryPending();
 }
Ejemplo n.º 10
0
 protected PersistentView()
 {
     LastSequenceNr = 0L;
     Extension = Persistence.Instance.Apply(Context.System);
     _viewSettings = Extension.Settings.View;
     _internalStash = CreateStash();
     _currentState = RecoveryStarted(long.MaxValue);
     _log = Context.GetLogger();
 }
Ejemplo n.º 11
0
 public BasePlayer(string name, IStash stash)
 {
     Name  = name;
     Uid   = Guid.NewGuid().ToString();
     Stash = stash;
 }