31 references to Success
NuGet.Protocol (31)
Plugins\Messages\CopyFilesInPackageResponse.cs (2)
36
/// is <see cref="MessageResponseCode.
Success
" /> and <paramref name="copiedFiles" />
51
if (responseCode == MessageResponseCode.
Success
&& (copiedFiles == null || !copiedFiles.Any()))
Plugins\Messages\GetAuthenticationCredentialsResponse.cs (1)
81
public bool IsValid() => ResponseCode == MessageResponseCode.
Success
&& (!string.IsNullOrWhiteSpace(Username) || !string.IsNullOrWhiteSpace(Password))
Plugins\Messages\GetFilesInPackageResponse.cs (2)
36
/// is <see cref="MessageResponseCode.
Success
" /> and <paramref name="files" />
51
if (responseCode == MessageResponseCode.
Success
&& (files == null || !files.Any()))
Plugins\Messages\GetPackageHashResponse.cs (2)
33
/// is <see cref="MessageResponseCode.
Success
" /> and <paramref name="hash" />
48
if (responseCode == MessageResponseCode.
Success
&& string.IsNullOrEmpty(hash))
Plugins\Messages\GetPackageVersionsResponse.cs (2)
36
/// is <see cref="MessageResponseCode.
Success
" /> and <paramref name="versions" />
51
if (responseCode == MessageResponseCode.
Success
&& (versions == null || !versions.Any()))
Plugins\Messages\GetServiceIndexResponse.cs (2)
47
/// is <see cref="MessageResponseCode.
Success
" /> and <paramref name="serviceIndexJson" />
63
if (responseCode == MessageResponseCode.
Success
&& serviceIndexJson == null)
Plugins\Messages\HandshakeResponse.cs (4)
35
internal bool IsSuccess => ResponseCode == MessageResponseCode.
Success
;
46
/// is <see cref="MessageResponseCode.
Success
" /> and <paramref name="protocolVersion" />
49
/// is not <see cref="MessageResponseCode.
Success
" /> and <paramref name="protocolVersion" />
64
if (responseCode == MessageResponseCode.
Success
)
Plugins\PluginManager.cs (1)
427
if (response != null && response.ResponseCode != MessageResponseCode.
Success
)
Plugins\PluginPackageDownloader.cs (1)
205
if (response != null && response.ResponseCode == MessageResponseCode.
Success
)
Plugins\PluginPackageReader.cs (4)
293
case MessageResponseCode.
Success
:
941
case MessageResponseCode.
Success
:
1040
case MessageResponseCode.
Success
:
1079
case MessageResponseCode.
Success
:
Plugins\RequestHandlers\GetCredentialsRequestHandler.cs (3)
169
MessageResponseCode.
Success
,
177
MessageResponseCode.
Success
,
187
resolvedCredential != null ? MessageResponseCode.
Success
: MessageResponseCode.NotFound,
Plugins\RequestHandlers\GetServiceIndexRequestHandler.cs (1)
140
responsePayload = new GetServiceIndexResponse(MessageResponseCode.
Success
, serviceIndex.Json);
Plugins\RequestHandlers\LogRequestHandler.cs (1)
90
responseCode = MessageResponseCode.
Success
;
Plugins\RequestHandlers\MonitorNuGetProcessExitRequestHandler.cs (1)
125
responseCode = MessageResponseCode.
Success
;
Plugins\RequestHandlers\SymmetricHandshake.cs (1)
205
response = new HandshakeResponse(MessageResponseCode.
Success
, negotiatedProtocolVersion);
RemoteRepositories\PluginFindPackageByIdResource.cs (2)
291
if (response != null && response.ResponseCode == MessageResponseCode.
Success
)
425
case MessageResponseCode.
Success
:
Resources\DownloadResourcePlugin.cs (1)
124
if (response.ResponseCode == MessageResponseCode.
Success
)