Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (53 sloc) 1.86 KB
using System;
using System.ComponentModel;
using System.Security;
using Inedo.Documentation;
using Inedo.Extensibility;
using Inedo.Extensibility.Configurations;
using Inedo.Extensibility.Credentials;
using Inedo.Serialization;
namespace Inedo.Extensions.Chocolatey.Configurations
[DisplayName("Chocolatey Source")]
public sealed class ChocolateySourceConfiguration : PersistedConfiguration, IHasCredentials<UsernamePasswordCredentials>, IExistential
[DisplayName("Source Name")]
public string Name { get; set; }
[DisplayName("Endpoint URL")]
public string Url { get; set; }
public string CredentialName { get; set; }
[DisplayName("User name")]
public string UserName { get; set; }
[Persistent(Encrypted = true)]
public SecureString Password { get; set; }
[Description("Lower priority numbers are more important. As a special case, 0 (the default) is the lowest priority.")]
public int Priority { get; set; } = 0;
public bool Exists { get; set; } = true;
public bool Disabled { get; set; }
You can’t perform that action at this time.