MVVM module which allows the registration of default services in the service locator.
Наследование: IServiceLocatorInitializer
Пример #1
0
        /// <summary>
        /// Initializes the design time data.
        /// </summary>
        private void InternalInitialize()
        {
            if (_internallyInitialized)
            {
                return;
            }

            _internallyInitialized = true;

            var serviceLocator = ServiceLocator.Default;

            var coreModule = new CoreModule();
            coreModule.Initialize(serviceLocator);

            var mvvmModule = new MVVMModule();
            mvvmModule.Initialize(serviceLocator);
        }
Пример #2
0
        /// <summary>
        /// Initializes the design time data.
        /// </summary>
        private void InternalInitialize()
        {
            if (_internallyInitialized)
            {
                return;
            }

            _internallyInitialized = true;

            var serviceLocator = ServiceLocator.Default;

            var coreModule = new CoreModule();

            coreModule.Initialize(serviceLocator);

            var mvvmModule = new MVVMModule();

            mvvmModule.Initialize(serviceLocator);
        }