/// <summary>Initializes a new instance of the Realm class with specified behavior.</summary> /// <param name="behavior">Realm behavior.</param> public Realm(IRealmBehavior behavior) : this() { if (behavior == null) throw new ArgumentNullException("behavior"); AddBehavior(behavior); }
/// <summary>Adds behavior to realm.</summary> /// <param name="behavior">Behavior to add.</param> public void AddBehavior(IRealmBehavior behavior) { _behaviors.Add(behavior); }
/// <summary>Removes behavior from realm.</summary> /// <param name="behavior">Behaior to remove.</param> public void RemoveBehavior(IRealmBehavior behavior) { _behaviors.Remove(behavior); }