private ConfigureVsts(IConfigureBehavior control, VstsSettings settings)
 {
     _control  = control;
     _settings = settings;
     _target   = new VstsConfig(_settings);
     _config   = control.Custom(_target.IsEnabled);
 }
Esempio n. 2
0
 /// <summary>
 /// Configures all features as disabled.
 /// </summary>
 /// <param name="This">The extension point for features configuration.</param>
 /// <returns>the extension point for features configuration.</returns>
 public static IConfigureFeatures AlwaysDisabled(this IConfigureFeatures This)
 {
     return(This.ConfiguredBy.Custom(OfAnyType.Disabled));
 }
Esempio n. 3
0
 /// <summary>
 /// Configures all features to be handled by <seealso cref="Feature.Configuration.Default"/>.
 /// </summary>
 /// <param name="This">The extension point for features configuration.</param>
 /// <returns>the extension point for features configuration.</returns>
 public static IConfigureFeatures HandledByDefault(this IConfigureFeatures This)
 {
     return(This.
            ConfiguredBy.Custom(null).And.
            NamedBy.Custom(null));
 }
 private ConfigureAppConfig(IConfigureBehavior control, AppConfigSettings appConfigSettings)
 {
     _control           = control;
     _appConfigSettings = appConfigSettings;
     _configuration     = _control.Custom(new AppConfig(_appConfigSettings).IsEnabled);
 }