public void Register(ICustomBehaviourCollection collection, ICustomBehaviour behaviour, bool isInitialize) { behaviour.Register(collection); _behaviours.Add(behaviour); behaviour.AddTo(CompositeDisposable); if (isInitialize) { behaviour.Initialize(); } }
void ICustomBehaviourCollection.Register(ICustomBehaviour behaviour) => _core.Register(this, behaviour, true);