public void Register(Initiliser initiliser) { initiliser.RegisterIoC(this); if (_container is null) { _container = initiliser.BuildRegister(); } else { throw new InvalidOperationException("Register has already been called and cannot be called a second time."); } }
/// <summary> /// ViewModel to View mappings /// </summary> /// <param name="initiliser"></param> public ViewModelViewMappings(Initiliser initiliser) { Mappings = new Dictionary <int, ViewMapping>(); AddMapping(initiliser.Mappings); }