Example #1
0
        public AccountActor(IAggregateRootCreationParameters parameters)
            : base(parameters)
        {
            _log   = Context.GetLogger();
            _state = new AccountState(parameters.Id, this);

            //_log.Info("Ctor AccountActor: {0}, {1}", this.PersistenceId, this.ToString());
        }
        protected AggregateRootActor(IAggregateRootCreationParameters parameters)
        {
            _id = parameters.Id;
            _projections = parameters.Projections;
            _snapshotThreshold = parameters.SnapshotThreshold;

            _exceptions = new List<Exception>();
            _log = Context.GetLogger();
        }
Example #3
0
 protected AggregateRootActor(IAggregateRootCreationParameters parameters)
 {
     _id                = parameters.Id;
     _projections       = parameters.Projections;
     _snapshotThreshold = parameters.SnapshotThreshold;
     // Disable snapshots on non snapshotable types
     if (typeof(ISnapShottable).IsAssignableFrom(typeof(T)))
     {
         _snapshotThreshold = parameters.SnapshotThreshold;
     }
     else
     {
         _snapshotThreshold = 0;
     }
     _exceptions = new List <Exception>();
     _log        = Context.GetLogger();
     if (parameters.ReceiveTimeout.HasValue)
     {
         Context.SetReceiveTimeout(parameters.ReceiveTimeout.Value);
     }
 }
Example #4
0
 public AccountActor(IAggregateRootCreationParameters parameters)
     : base(parameters)
 {
     _log = Context.GetLogger();
     _state = new AccountState(parameters.Id,this);
 }