Esempio n. 1
0
        public HomeConfiguration(IApplicationInstanceSelector instance)
        {
            _instance = instance;

            if (instance.Current == null)
            {
                instance.LoadInstance();
            }

            InstallDirectory  = instance.Current.InstallDirectory;
            SqlDataSource     = ConfigurationManager.AppSettings["SqlServer"];
            SqlInitialCatalog = ConfigurationManager.AppSettings["SqlDatabase"];
            SqlUsername       = ConfigurationManager.AppSettings["SqlUserId"];
            SqlPassword       = ConfigurationManager.AppSettings["SqlPassword"];
            ListenPrefixes    = ConfigurationManager.AppSettings["WebsiteUrl"];
        }
 protected AbstractStandardCommand(IApplicationInstanceSelector instanceSelector)
 {
     _instanceSelector = instanceSelector;
 }
Esempio n. 3
0
 public ConfigureCommand(IApplicationInstanceSelector selector)
     : base(selector)
 {
 }
Esempio n. 4
0
 public RunCommand(Lazy <IServerEngine> engine, IApplicationInstanceSelector selector)
     : base(selector)
 {
     _engine = engine;
 }