/// <summary>
        /// Set the export environment for the strategy
        /// </summary>
        /// <param name="environment"></param>
        public virtual IConfigurableExportStrategy SetEnvironment(ExportEnvironment environment)
        {
            Environment = environment;

            return this;
        }
示例#2
0
        /// <summary>
        /// Default bootstrapper
        /// </summary>
        /// <param name="exportEnvironment"></param>
        public Bootstrapper(ExportEnvironment exportEnvironment = ExportEnvironment.RunTime)
        {
            Initialize(exportEnvironment);

            Instance = this;
        }
 /// <summary>
 /// Set the export environment for the strategy
 /// </summary>
 /// <param name="environment"></param>
 public virtual void SetEnvironment(ExportEnvironment environment)
 {
     Environment = environment;
 }
示例#4
0
        /// <summary>
        /// Initialize the bootstrapper
        /// </summary>
        /// <param name="exportEnvironment">export environment</param>
        private void Initialize(ExportEnvironment exportEnvironment)
        {
            Container = new DependencyInjectionContainer(exportEnvironment);

            Container.Configure(new StyleMVVMCompositionRoot());

            Instance = this;
        }
		/// <summary>
		/// Default constructor
		/// </summary>
		/// <param name="environment">export environment</param>
		public ExportEnvironmentAttribute(ExportEnvironment environment)
		{
			this.environment = environment;
		}