public PersistenceSupervisor(Props childProps, string childName,
                              IPersistenceSupervisionConfig config, SupervisorStrategy strategy = null)
 {
     ChildProps = childProps;
     ChildName  = childName;
     _config    = config;
     _strategy  = strategy ?? Actor.SupervisorStrategy.StoppingStrategy;
 }
        public PersistenceSupervisor(Func <IActorRef, Props> childProps, string childName,
                                     IPersistenceSupervisionConfig config, SupervisorStrategy strategy = null)
        {
            ChildProps = childProps;
            ChildName  = childName;
            _config    = config;
            _strategy  = strategy ?? Actor.SupervisorStrategy.StoppingStrategy;

            // use built-in defaults if unavailable
            IsEvent = _config.IsEvent ?? PersistenceSupervisionConfig.DefaultIsEvent;
            MakeEventConfirmable = _config.MakeEventConfirmable ??
                                   PersistenceSupervisionConfig.DefaultMakeEventConfirmable(childName);
        }
 public PersistenceSupervisor(Props childProps, string childName,
                              IPersistenceSupervisionConfig config, SupervisorStrategy strategy = null)
     : this(i => childProps, childName, config, strategy)
 {
 }