protected PersistentView() { LastSequenceNr = 0L; Extension = Persistence.Instance.Apply(Context.System); _viewSettings = Extension.Settings.View; _internalStash = CreateStash(); _currentState = RecoveryPending(); }
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(); }
protected Eventsourced() { LastSequenceNr = 0L; Extension = Persistence.Instance.Apply(Context.System); _instanceId = InstanceCounter.GetAndIncrement(); _maxMessageBatchSize = Extension.Settings.Journal.MaxMessageBatchSize; _currentState = RecoveryPending(); _internalStash = CreateStash(); }
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(); }
public Player(string name, IStash stash) : base(name, stash) { }
public InternalStashAwareStash(IStash userStash, IStash internalStash) { _userStash = userStash; _internalStash = internalStash; }
protected EventsourcedView() { messageStash = Context.CreateStash(this); InstanceId = instanceIdCounter.GetAndIncrement(); ReplaySettings = ReplaySettings.Create(Context.System); }
public BasePlayer(string name, IStash stash) { Name = name; Uid = Guid.NewGuid().ToString(); Stash = stash; }