51 references to Resource
Microsoft.NET.Build.Containers (51)
AmazonECRMessageHandler.cs (1)
28
string message =
Resource
.GetString(nameof(Strings.AmazonRegistryFailed));
AuthHandshakeMessageHandler.cs (9)
153
public string ResolvedToken => token ?? access_token ?? throw new ArgumentException(
Resource
.GetString(nameof(Strings.InvalidTokenResponse)));
239
Resource
.FormatString(nameof(Strings.InvalidAuthResponse_RelativeOrUnparseableRealm), realm));
254
Resource
.FormatString(nameof(Strings.InvalidAuthResponse_DisallowedScheme), realm, realmUri.Scheme));
272
Resource
.FormatString(nameof(Strings.InvalidAuthResponse_PrivateIpLiteralRealm), realm, realmHost));
284
Resource
.FormatString(nameof(Strings.InvalidAuthResponse_PrivateIpLiteralRealm), realm, realmHost));
503
_logger.LogTrace(
Resource
.GetString(nameof(Strings.CouldntDeserializeJsonToken)));
542
throw new ArgumentException(
Resource
.GetString(nameof(Strings.CouldntDeserializeJsonToken)));
576
throw new ArgumentException(
Resource
.GetString(nameof(Strings.NoRequestUriSpecified)), nameof(request));
631
throw new ApplicationException(
Resource
.GetString(nameof(Strings.TooManyRetries)), new AggregateException(requestExceptions!));
ContainerBuilder.cs (13)
50
throw new ArgumentException(string.Format(
Resource
.GetString(nameof(Strings.PublishDirectoryDoesntExist)), nameof(publishDirectory), publishDirectory.FullName));
83
logger.LogError(
Resource
.FormatString(nameof(Strings.RepositoryNotFound), baseImageName, baseImageTag, baseImageDigest, registry.RegistryName));
88
logger.LogError(
Resource
.FormatString(nameof(Strings.UnableToAccessRepository), baseImageName, registry.RegistryName));
99
throw new NotSupportedException(
Resource
.GetString(nameof(Strings.ImagePullNotSupported)));
103
Console.WriteLine(
Resource
.GetString(nameof(Strings.BaseImageNotFound)), sourceImageReference, containerRuntimeIdentifier);
127
logger.LogWarning(
Resource
.GetString(nameof(s)));
134
logger.LogError(
Resource
.GetString(nameof(s)));
138
logger.LogError(
Resource
.FormatString(nameof(s), a));
228
logger.LogError(
Resource
.FormatString(nameof(Strings.LocalRegistryNotAvailable)));
239
logger.LogError(
Resource
.FormatString(nameof(Strings.UnableToDownloadFromRepository)), sourceImageReference);
244
logger.LogError(
Resource
.FormatString(nameof(Strings.RegistryOutputPushFailed), ex.Message));
266
logger.LogError(
Resource
.FormatString(nameof(Strings.UnableToDownloadFromRepository)), sourceImageReference);
271
logger.LogError(
Resource
.FormatString(nameof(Strings.RegistryOutputPushFailed), e.Message));
ContentStore.cs (1)
49
_ => throw new ArgumentException(
Resource
.FormatString(nameof(Strings.UnrecognizedMediaType), descriptor.MediaType))
Credentials\CredentialRetrievalException.cs (1)
12
Resource
.FormatString(nameof(Strings.FailedRetrievingCredentials), registry, innerException.Message),
Exceptions\InvalidAuthResponseException.cs (1)
15
: base(
Resource
.FormatString(nameof(Strings.InvalidRegistryAuthResponse), registry, reason), innerException)
FallbackToHttpMessageHandler.cs (1)
34
throw new ArgumentException(
Resource
.GetString(nameof(Strings.NoRequestUriSpecified)), nameof(request));
ImageBuilder.cs (1)
244
Resource
.FormatString(
Layer.cs (1)
207
_ => throw new ArgumentException(
Resource
.FormatString(nameof(Strings.UnrecognizedMediaType), manifestMediaType))
LocalDaemons\DockerCli.cs (7)
79
throw new NotImplementedException(
Resource
.FormatString(Strings.ContainerRuntimeProcessCreationFailed, Commands));
113
throw new NotImplementedException(
Resource
.FormatString(Strings.ContainerRuntimeProcessCreationFailed, commandPath));
129
throw new DockerLoadException(
Resource
.FormatString(nameof(Strings.ImageLoadFailed), await loadProcess.StandardError.ReadToEndAsync(cancellationToken).ConfigureAwait(false)));
217
throw new DockerLoadException(
Resource
.FormatString(
228
throw new DockerLoadException(
Resource
.FormatString(nameof(Strings.DockerInfoFailed_Ex), e.Message));
300
throw new ArgumentException(
Resource
.FormatString(nameof(Strings.UnsupportedMediaTypeForTarball), image.ManifestMediaType));
353
throw new NotImplementedException(
Resource
.FormatString(
LocalDaemons\KnownLocalRegistryTypes.cs (1)
28
Resource
.FormatString(
Registry\DefaultBlobOperations.cs (1)
78
throw new ContainerHttpException(
Resource
.GetString(nameof(Strings.RegistryPullFailed)), response.RequestMessage?.RequestUri?.ToString(), response.StatusCode);
Registry\DefaultBlobUploadOperations.cs (3)
38
string errorMessage =
Resource
.FormatString(nameof(Strings.BlobUploadFailed), $"PUT {putUri}", finalizeResponse.StatusCode);
58
string errorMessage =
Resource
.FormatString(nameof(Strings.BlobUploadFailed), $"POST {startUploadUri}", pushResponse.StatusCode);
118
string errorMessage =
Resource
.FormatString(nameof(Strings.BlobUploadFailed), $"PATCH {uploadUri}", patchResponse.StatusCode);
Registry\DefaultManifestOperations.cs (2)
51
throw new ContainerHttpException(
Resource
.FormatString(nameof(Strings.RegistryPushFailed), putResponse.StatusCode), putResponse.RequestMessage?.RequestUri?.ToString(), putResponse.StatusCode);
58
throw new ContainerHttpException(
Resource
.GetString(nameof(Strings.RegistryPullFailed)), response.RequestMessage?.RequestUri?.ToString(), response.StatusCode);
Registry\Registry.cs (2)
217
var unknownMediaType => throw new NotImplementedException(
Resource
.FormatString(
609
throw new NotImplementedException(
Resource
.GetString(nameof(Strings.MissingLinkToRegistry)));
Resources\Resource.cs (1)
24
internal static readonly ResourceManager Manager = new(typeof(Strings).FullName!, typeof(
Resource
).GetTypeInfo().Assembly);
Tasks\CreateImageIndex.Interface.cs (1)
96
TaskResources =
Resource
.Manager;
Tasks\CreateNewImage.cs (2)
63
Log.LogMessage(MessageImportance.Low,
Resource
.GetString(nameof(Strings.HostObjectNotDetected)));
136
throw new NotSupportedException(
Resource
.GetString(nameof(Strings.ImagePullNotSupported)));
Tasks\CreateNewImage.Interface.cs (1)
227
TaskResources =
Resource
.Manager;
Tasks\ParseContainerProperties.cs (1)
83
TaskResources =
Resource
.Manager;