Initialize() public method

Initializes the specified service locator.
public Initialize ( IServiceLocator serviceLocator ) : void
serviceLocator IServiceLocator The service locator.
return void
        /// <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);
        }
Example #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);
        }