Example #1
0
        /// <summary>
        /// Creates and setups a new instance for model obejct wiring.
        /// </summary>
        /// <param name="modelInterception">The database model interception settings.</param>
        public static ModelResolver SetUp(IModelConfiguration modelInterception)
        {
            var wiring = new ModelResolver();

            modelInterception.Initialize(wiring._container);
            _instances.Add(wiring);
            return(wiring);
        }
 public override ICallHandler CreateHandler(IUnityContainer container)
 {
     if (_riseValueChanged)
     {
         var wiring = ModelResolver.GetInstanceByContainer(container);
         return(new NotifyPropertyChangedHandler(wiring));
     }
     else
     {
         return(new NotifyPropertyChangedHandler(null));
     } //else
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Remontinka.Client.Core.Interception.NotifyPropertyChangedHandler"/> class.
 /// </summary>
 public NotifyPropertyChangedHandler(ModelResolver containerWiring)
 {
     _containerWiring = containerWiring;
 }