示例#1
0
        private void SetHostParameter(IConfigSetTask reader, PropertyRequest settings, IServiceHostSettings host)
        {
            var item = host.Parameters.SingleOrDefault(p => p.Name == settings.PropertyName);

            if (item == null)
            {
                reader.CreateServiceHostParameter(
                    host,
                    settings.PropertyName,
                    settings.IsSecure,
                    settings.Type == VariableTypes.ServiceHostEnvironmental ? settings.ParentFormatString : settings.Value,
                    settings.Type == VariableTypes.ServiceHostEnvironmental);
            }
            else
            {
                item.IsSecureString  = settings.IsSecure;
                item.IsEnvironmental = settings.Type == VariableTypes.ServiceHostEnvironmental;
                item.SetValue(
                    settings.Type == VariableTypes.ServiceHostEnvironmental ? settings.ParentFormatString : settings.Value);
                reader.UpdateHostParameter(item);
            }
        }
 public ConfigReaderController(IConfigSetTask reader, IUserFacade userFacade, IEnvironmentTasks environmentReader)
 {
     this.reader            = reader;
     this.userFacade        = userFacade;
     this.environmentReader = environmentReader;
 }
 public UserTokenController(IConfigSetTask reader, IUserFacade userFacade)
 {
     this.reader     = reader;
     this.userFacade = userFacade;
 }
示例#4
0
 public UserController(IRuntime runtime, IUserFacade userReader, IConfigSetTask reader) : base(runtime)
 {
     this.userReader = userReader;
     this.reader     = reader;
 }
示例#5
0
 public ServiceHostParameterController(IEnvironmentTasks environmentTasks, IConfigSetTask reader, IRuntime runtime)
     : base(runtime)
 {
     this.environmentTasks = environmentTasks;
     this.reader           = reader;
 }
示例#6
0
 public HomeController(IRuntime runtime,IEnvironmentTasks environmentTasks, IConfigSetTask reader)
     : base(runtime)
 {
     this.environmentTasks = environmentTasks;
     this.reader = reader;
 }
 public ConfigSetController(IRuntime runtime, IConfigSetTask reader)
     : base(runtime)
 {
     this.reader = reader;
 }
示例#8
0
 public ServiceHostsController(IConfigSetTask reader, IRuntime runtime)
     : base(runtime)
 {
     this.reader = reader;
 }
示例#9
0
 public ParametersController(IConfigSetTask reader, IRuntime runtime) : base(runtime)
 {
     this.reader = reader;
 }
示例#10
0
 public ServiceController(IConfigSetTask configSetTasks, IRuntime runtime)
     : base(runtime)
 {
     this.reader = configSetTasks;
 }
 public CacheManagementService(IRuntime runtime, IConfigSetTask configSetTask, IEnvironmentTasks environmentTask)
     : base(runtime)
 {
     this.configSetTask = configSetTask;
     this.environmentTask = environmentTask;
 }
 public ParametersController(IConfigSetTask reader,IRuntime runtime):base(runtime)
 {
     this.reader = reader;
 }
示例#13
0
 public ServiceController(IConfigSetTask configSetTasks, IRuntime runtime)
     : base(runtime)
 {
     this.reader = configSetTasks;
 }
示例#14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Web.Mvc.Controller"/> class.
 /// </summary>
 public RegistrationController(IEnvironmentTasks environmentTasks, IConfigSetTask configSetTasks
                               )
 {
     this.environmentTasks = environmentTasks;
     this.configSetTasks   = configSetTasks;
 }
 public ServiceHostParameterController(IEnvironmentTasks environmentTasks, IConfigSetTask reader, IRuntime runtime)
     : base(runtime)
 {
     this.environmentTasks = environmentTasks;
     this.reader = reader;
 }
 public ConfigSetController(IRuntime runtime,IConfigSetTask reader)
     : base(runtime)
 {
     this.reader = reader;
 }
示例#17
0
 public UserController(IRuntime runtime,IUserFacade userReader, IConfigSetTask reader):base(runtime)
 {
     this.userReader = userReader;
     this.reader = reader;
 }
示例#18
0
 public HomeController(IRuntime runtime, IEnvironmentTasks environmentTasks, IConfigSetTask reader)
     : base(runtime)
 {
     this.environmentTasks = environmentTasks;
     this.reader           = reader;
 }
示例#19
0
 public EndpointController(IConfigSetTask reader, IRuntime runtime)
     : base(runtime)
 {
     this.reader = reader;
 }
 public UserTokenController(IConfigSetTask reader, IUserFacade userFacade)
 {
     this.reader = reader;
     this.userFacade = userFacade;
 }
 public ServiceHostsController(IConfigSetTask reader, IRuntime runtime)
     : base(runtime)
 {
     this.reader = reader;
 }
 public ConfigReaderController(IConfigSetTask reader, IUserFacade userFacade, IEnvironmentTasks environmentReader)
 {
     this.reader = reader;
     this.userFacade = userFacade;
     this.environmentReader = environmentReader;
 }
 public EnvironmentController(IEnvironmentTasks environmentTasks, IConfigSetTask configSetTasks, IRuntime runtime)
     : base(runtime)
 {
     this.reader = environmentTasks;
     this.configSetTasks = configSetTasks;
 }
示例#24
0
 public CacheManagementService(IRuntime runtime, IConfigSetTask configSetTask, IEnvironmentTasks environmentTask)
     : base(runtime)
 {
     this.configSetTask   = configSetTask;
     this.environmentTask = environmentTask;
 }
示例#25
0
 public EndpointController(IConfigSetTask reader, IRuntime runtime)
     : base(runtime)
 {
     this.reader = reader;
 }
 public EnvironmentController(IEnvironmentTasks environmentTasks, IConfigSetTask configSetTasks, IRuntime runtime)
     : base(runtime)
 {
     this.reader         = environmentTasks;
     this.configSetTasks = configSetTasks;
 }