212 references to MessageResponseCode
NuGet.Credentials (2)
SecurePluginCredentialProvider.cs (2)
133if (credentialResponse.ResponseCode == MessageResponseCode.NotFound && nonInteractive) 217else if (credentialResponse.ResponseCode == MessageResponseCode.NotFound)
NuGet.Protocol (210)
_generated\48\PluginJsonContext.CopyFilesInPackageResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.CopyFilesInPackageResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0], (global::System.Collections.Generic.IEnumerable<string>)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.CopyFilesInPackageResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), typeof(global::System.Collections.Generic.IEnumerable<string>)}, modifiers: null), 73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 88AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.CopyFilesInPackageResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info1); 125ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\50\PluginJsonContext.CopyNupkgFileResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.CopyNupkgFileResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.CopyNupkgFileResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.CopyNupkgFileResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info0); 99ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\53\PluginJsonContext.GetAuthenticationCredentialsResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.GetAuthenticationCredentialsResponse((string)args[0], (string)args[1], (string)args[2], (global::System.Collections.Generic.IList<string>)args[3], (global::NuGet.Protocol.Plugins.MessageResponseCode)args[4]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetAuthenticationCredentialsResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string), typeof(string), typeof(global::System.Collections.Generic.IList<string>), typeof(global::NuGet.Protocol.Plugins.MessageResponseCode)}, modifiers: null), 133var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 148AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetAuthenticationCredentialsResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 151properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info4); 240ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\55\PluginJsonContext.GetCredentialsResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.GetCredentialsResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0], (string)args[1], (string)args[2], (global::System.Collections.Generic.IReadOnlyList<string>)args[3]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetCredentialsResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), typeof(string), typeof(string), typeof(global::System.Collections.Generic.IReadOnlyList<string>)}, modifiers: null), 73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 88AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetCredentialsResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info1); 175ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\57\PluginJsonContext.GetFilesInPackageResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.GetFilesInPackageResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0], (global::System.Collections.Generic.IEnumerable<string>)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetFilesInPackageResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), typeof(global::System.Collections.Generic.IEnumerable<string>)}, modifiers: null), 73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 88AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetFilesInPackageResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info1); 125ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\61\PluginJsonContext.GetPackageHashResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.GetPackageHashResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0], (string)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetPackageHashResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), typeof(string)}, modifiers: null), 73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 88AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetPackageHashResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info1); 124ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\63\PluginJsonContext.GetPackageVersionsResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.GetPackageVersionsResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0], (global::System.Collections.Generic.IEnumerable<string>)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetPackageVersionsResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), typeof(global::System.Collections.Generic.IEnumerable<string>)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetPackageVersionsResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info0); 125ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\65\PluginJsonContext.GetServiceIndexResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.GetServiceIndexResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0], (string)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetServiceIndexResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), typeof(string)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.GetServiceIndexResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info0); 121ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\67\PluginJsonContext.HandshakeResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.HandshakeResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0], (global::NuGet.Versioning.SemanticVersion)args[1]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.HandshakeResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), typeof(global::NuGet.Versioning.SemanticVersion)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.HandshakeResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info0); 101ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\69\PluginJsonContext.InitializeResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.InitializeResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.InitializeResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.InitializeResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info0); 99ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\71\PluginJsonContext.LogResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.LogResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.LogResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.LogResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info0); 99ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\73\PluginJsonContext.MessageResponseCode.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>? _MessageResponseCode; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.MessageResponseCode> MessageResponseCode 22get => _MessageResponseCode ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>)Options.GetTypeInfo(typeof(global::NuGet.Protocol.Plugins.MessageResponseCode)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.MessageResponseCode> Create_MessageResponseCode(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.MessageResponseCode> jsonTypeInfo)) 29global::System.Text.Json.Serialization.JsonConverter converter = ExpandConverter(typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), new global::System.Text.Json.Serialization.JsonStringEnumConverter<global::NuGet.Protocol.Plugins.MessageResponseCode>(), options); 30jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::NuGet.Protocol.Plugins.MessageResponseCode> (options, converter);
_generated\75\PluginJsonContext.MonitorNuGetProcessExitResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.MonitorNuGetProcessExitResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.MonitorNuGetProcessExitResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.MonitorNuGetProcessExitResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info0); 99ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\78\PluginJsonContext.PrefetchPackageResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.PrefetchPackageResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.PrefetchPackageResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.PrefetchPackageResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info0); 99ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\81\PluginJsonContext.SetCredentialsResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.SetCredentialsResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.SetCredentialsResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.SetCredentialsResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info0); 99ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\83\PluginJsonContext.SetLogLevelResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.SetLogLevelResponse((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0]), 35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.SetLogLevelResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Protocol.Plugins.MessageResponseCode> 68AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.SetLogLevelResponse).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Protocol.Plugins.MessageResponseCode>(options, info0); 99ParameterType = typeof(global::NuGet.Protocol.Plugins.MessageResponseCode),
_generated\95\PluginJsonContext.GetJsonTypeInfo.g.cs (1)
142if (type == typeof(global::NuGet.Protocol.Plugins.MessageResponseCode))
Plugins\Messages\CopyFilesInPackageResponse.cs (6)
28public MessageResponseCode ResponseCode { get; } 36/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 38/// is <see cref="MessageResponseCode.Success" /> and <paramref name="copiedFiles" /> 41public CopyFilesInPackageResponse(MessageResponseCode responseCode, IEnumerable<string> copiedFiles) 43if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode)) 53if (responseCode == MessageResponseCode.Success && (copiedFiles == null || !copiedFiles.Any()))
Plugins\Messages\CopyNupkgFileResponse.cs (4)
19public MessageResponseCode ResponseCode { get; } 26/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 28public CopyNupkgFileResponse(MessageResponseCode responseCode) 30if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode))
Plugins\Messages\GetAuthenticationCredentialsResponse.cs (4)
43public MessageResponseCode ResponseCode { get; } 55public GetAuthenticationCredentialsResponse(string username, string password, string message, IList<string> authenticationTypes, MessageResponseCode responseCode) 58if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode)) 82public bool IsValid() => ResponseCode == MessageResponseCode.Success && (!string.IsNullOrWhiteSpace(Username) || !string.IsNullOrWhiteSpace(Password))
Plugins\Messages\GetCredentialsResponse.cs (4)
27public MessageResponseCode ResponseCode { get; } 42/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 45MessageResponseCode responseCode, 50if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode))
Plugins\Messages\GetFilesInPackageResponse.cs (6)
28public MessageResponseCode ResponseCode { get; } 36/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 38/// is <see cref="MessageResponseCode.Success" /> and <paramref name="files" /> 41public GetFilesInPackageResponse(MessageResponseCode responseCode, IEnumerable<string> files) 43if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode)) 53if (responseCode == MessageResponseCode.Success && (files == null || !files.Any()))
Plugins\Messages\GetPackageHashResponse.cs (6)
26public MessageResponseCode ResponseCode { get; } 33/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 35/// is <see cref="MessageResponseCode.Success" /> and <paramref name="hash" /> 38public GetPackageHashResponse(MessageResponseCode responseCode, string hash) 40if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode)) 50if (responseCode == MessageResponseCode.Success && string.IsNullOrEmpty(hash))
Plugins\Messages\GetPackageVersionsResponse.cs (6)
23public MessageResponseCode ResponseCode { get; } 36/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 38/// is <see cref="MessageResponseCode.Success" /> and <paramref name="versions" /> 41public GetPackageVersionsResponse(MessageResponseCode responseCode, IEnumerable<string> versions) 43if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode)) 53if (responseCode == MessageResponseCode.Success && (versions == null || !versions.Any()))
Plugins\Messages\GetServiceIndexResponse.cs (7)
22public MessageResponseCode ResponseCode { get; } 49/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 51/// is <see cref="MessageResponseCode.Success" /> and <paramref name="serviceIndexJson" /> 56public GetServiceIndexResponse(MessageResponseCode responseCode, string? serviceIndexJson) 58if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode)) 68if (responseCode == MessageResponseCode.Success && serviceIndexJson == null) 84public GetServiceIndexResponse(MessageResponseCode responseCode, JObject serviceIndex)
Plugins\Messages\HandshakeResponse.cs (7)
22public MessageResponseCode ResponseCode { get; } 38/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 40/// is <see cref="MessageResponseCode.Success" /> and <paramref name="protocolVersion" /> 43/// is not <see cref="MessageResponseCode.Success" /> and <paramref name="protocolVersion" /> 46public HandshakeResponse(MessageResponseCode responseCode, SemanticVersion protocolVersion) 48if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode)) 58if (responseCode == MessageResponseCode.Success)
Plugins\Messages\InitializeResponse.cs (4)
19public MessageResponseCode ResponseCode { get; } 26/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 28public InitializeResponse(MessageResponseCode responseCode) 30if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode))
Plugins\Messages\LogResponse.cs (4)
19public MessageResponseCode ResponseCode { get; } 26/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 28public LogResponse(MessageResponseCode responseCode) 30if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode))
Plugins\Messages\MonitorNuGetProcessExitResponse.cs (4)
19public MessageResponseCode ResponseCode { get; } 26/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 28public MonitorNuGetProcessExitResponse(MessageResponseCode responseCode) 30if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode))
Plugins\Messages\PrefetchPackageResponse.cs (4)
19public MessageResponseCode ResponseCode { get; } 26/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 28public PrefetchPackageResponse(MessageResponseCode responseCode) 30if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode))
Plugins\Messages\SetCredentialsResponse.cs (4)
19public MessageResponseCode ResponseCode { get; } 26/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 28public SetCredentialsResponse(MessageResponseCode responseCode) 30if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode))
Plugins\Messages\SetLogLevelResponse.cs (4)
19public MessageResponseCode ResponseCode { get; } 26/// is an undefined <see cref="MessageResponseCode" /> value.</exception> 28public SetLogLevelResponse(MessageResponseCode responseCode) 30if (!Enum.IsDefined(typeof(MessageResponseCode), responseCode))
Plugins\PluginManager.cs (1)
421if (response != null && response.ResponseCode != MessageResponseCode.Success)
Plugins\PluginPackageDownloader.cs (1)
207if (response != null && response.ResponseCode == MessageResponseCode.Success)
Plugins\PluginPackageReader.cs (11)
295case MessageResponseCode.Success: 298case MessageResponseCode.Error: 307case MessageResponseCode.NotFound: 943case MessageResponseCode.Success: 946case MessageResponseCode.NotFound: 1042case MessageResponseCode.Success: 1045case MessageResponseCode.Error: 1054case MessageResponseCode.NotFound: 1081case MessageResponseCode.Success: 1084case MessageResponseCode.Error: 1093case MessageResponseCode.NotFound:
Plugins\RequestHandlers\GetCredentialsRequestHandler.cs (5)
163MessageResponseCode.Success, 171MessageResponseCode.Success, 180networkCredential != null ? MessageResponseCode.Success : MessageResponseCode.NotFound, 188MessageResponseCode.NotFound,
Plugins\RequestHandlers\GetServiceIndexRequestHandler.cs (2)
131responsePayload = new GetServiceIndexResponse(MessageResponseCode.NotFound, serviceIndexJson: (string)null); 135responsePayload = new GetServiceIndexResponse(MessageResponseCode.Success, serviceIndex.Json);
Plugins\RequestHandlers\LogRequestHandler.cs (3)
80MessageResponseCode responseCode; 86responseCode = MessageResponseCode.Success; 90responseCode = MessageResponseCode.Error;
Plugins\RequestHandlers\MonitorNuGetProcessExitRequestHandler.cs (3)
107MessageResponseCode responseCode; 111responseCode = MessageResponseCode.NotFound; 119responseCode = MessageResponseCode.Success;
Plugins\RequestHandlers\SymmetricHandshake.cs (3)
73_handshakeFailedResponse = new HandshakeResponse(MessageResponseCode.Error, protocolVersion: null); 127if (response != null && response.ResponseCode == MessageResponseCode.Success) 200response = new HandshakeResponse(MessageResponseCode.Success, negotiatedProtocolVersion);
RemoteRepositories\PluginFindPackageByIdResource.cs (4)
291if (response != null && response.ResponseCode == MessageResponseCode.Success) 425case MessageResponseCode.Success: 428case MessageResponseCode.Error: 436case MessageResponseCode.NotFound:
Resources\DownloadResourcePlugin.cs (2)
124if (response.ResponseCode == MessageResponseCode.Success) 131if (response.ResponseCode == MessageResponseCode.NotFound)