47 references to Resource
Microsoft.NET.Build.Containers (47)
AmazonECRMessageHandler.cs (1)
28string message = Resource.GetString(nameof(Strings.AmazonRegistryFailed));
AuthHandshakeMessageHandler.cs (8)
155public string ResolvedToken => token ?? access_token ?? throw new ArgumentException(Resource.GetString(nameof(Strings.InvalidTokenResponse))); 245Resource.FormatString(nameof(Strings.InvalidAuthResponse_RelativeOrUnparseableRealm), realm)); 260Resource.FormatString(nameof(Strings.InvalidAuthResponse_DisallowedScheme), realm, realmUri.Scheme)); 324Resource.FormatString( 440_logger.LogTrace(Resource.GetString(nameof(Strings.CouldntDeserializeJsonToken))); 479throw new ArgumentException(Resource.GetString(nameof(Strings.CouldntDeserializeJsonToken))); 513throw new ArgumentException(Resource.GetString(nameof(Strings.NoRequestUriSpecified)), nameof(request)); 607throw new ApplicationException(Resource.GetString(nameof(Strings.TooManyRetries)), new AggregateException(requestExceptions!));
AuthRealmHandlerFactory.cs (1)
149Resource.FormatString(
ContentStore.cs (1)
37_ => throw new ArgumentException(Resource.FormatString(nameof(Strings.UnrecognizedMediaType), descriptor.MediaType))
Credentials\CredentialRetrievalException.cs (1)
12Resource.FormatString(nameof(Strings.FailedRetrievingCredentials), registry, innerException.Message),
Exceptions\InvalidAuthRealmConfigurationException.cs (1)
11: base(Resource.FormatString(resourceName, environmentVariableName, invalidValue))
Exceptions\InvalidAuthResponseException.cs (1)
15: base(Resource.FormatString(nameof(Strings.InvalidRegistryAuthResponse), registry, reason), innerException)
FallbackToHttpMessageHandler.cs (1)
34throw new ArgumentException(Resource.GetString(nameof(Strings.NoRequestUriSpecified)), nameof(request));
ImageBuilder.cs (1)
248Resource.FormatString(
Layer.cs (1)
221_ => throw new ArgumentException(Resource.FormatString(nameof(Strings.UnrecognizedMediaType), manifestMediaType))
LocalDaemons\ContainerArchive.cs (2)
49throw new NotSupportedException(Resource.FormatString(nameof(Strings.UnsupportedMediaTypeForTarball), image.ManifestMediaType)); 123throw new NotImplementedException(Resource.FormatString(
LocalDaemons\ContainerRuntime.cs (1)
213=> new(Resource.FormatString(Strings.ContainerRuntimeProcessCreationFailed, GetCommandsForCurrentPlatform()));
LocalDaemons\ContainerRuntimeOperations.cs (2)
81throw new DockerLoadException(Resource.FormatString(nameof(Strings.ImageLoadFailed), output.StandardError)); 118throw new DockerLoadException(Resource.FormatString(nameof(Strings.ImageLoadFailed), stderr));
LocalDaemons\ContainerRuntimes.cs (3)
154throw new DockerLoadException(Resource.FormatString( 165throw new DockerLoadException(Resource.FormatString(nameof(Strings.DockerInfoFailed_Ex), e.Message)); 317throw new DockerLoadException(Resource.FormatString(nameof(Strings.ImageLoadFailed), stderr));
LocalDaemons\DockerCli.cs (7)
79throw new NotImplementedException(Resource.FormatString(Strings.ContainerRuntimeProcessCreationFailed, Commands)); 113throw new NotImplementedException(Resource.FormatString(Strings.ContainerRuntimeProcessCreationFailed, commandPath)); 129throw new DockerLoadException(Resource.FormatString(nameof(Strings.ImageLoadFailed), await loadProcess.StandardError.ReadToEndAsync(cancellationToken).ConfigureAwait(false))); 217throw new DockerLoadException(Resource.FormatString( 228throw new DockerLoadException(Resource.FormatString(nameof(Strings.DockerInfoFailed_Ex), e.Message)); 300throw new ArgumentException(Resource.FormatString(nameof(Strings.UnsupportedMediaTypeForTarball), image.ManifestMediaType)); 353throw new NotImplementedException(Resource.FormatString(
LocalDaemons\KnownLocalRegistryTypes.cs (1)
45Resource.FormatString(
Registry\DefaultBlobOperations.cs (1)
86throw new ContainerHttpException(Resource.GetString(nameof(Strings.RegistryPullFailed)), response.RequestMessage?.RequestUri?.ToString(), response.StatusCode);
Registry\DefaultBlobUploadOperations.cs (3)
38string errorMessage = Resource.FormatString(nameof(Strings.BlobUploadFailed), $"PUT {putUri}", finalizeResponse.StatusCode); 58string errorMessage = Resource.FormatString(nameof(Strings.BlobUploadFailed), $"POST {startUploadUri}", pushResponse.StatusCode); 118string errorMessage = Resource.FormatString(nameof(Strings.BlobUploadFailed), $"PATCH {uploadUri}", patchResponse.StatusCode);
Registry\DefaultManifestOperations.cs (2)
103throw new ContainerHttpException(Resource.FormatString(nameof(Strings.RegistryPushFailed), putResponse.StatusCode), putResponse.RequestMessage?.RequestUri?.ToString(), putResponse.StatusCode); 110throw new ContainerHttpException(Resource.GetString(nameof(Strings.RegistryPullFailed)), response.RequestMessage?.RequestUri?.ToString(), response.StatusCode);
Registry\Registry.cs (2)
221var unknownMediaType => throw new NotImplementedException(Resource.FormatString( 637throw new NotImplementedException(Resource.GetString(nameof(Strings.MissingLinkToRegistry)));
Resources\Resource.cs (1)
24internal static readonly ResourceManager Manager = new(typeof(Strings).FullName!, typeof(Resource).GetTypeInfo().Assembly);
Tasks\CreateImageIndex.Interface.cs (1)
96TaskResources = Resource.Manager;
Tasks\CreateNewImage.cs (2)
132Log.LogMessage(MessageImportance.Low, Resource.GetString(nameof(Strings.HostObjectNotDetected))); 216throw new NotSupportedException(Resource.GetString(nameof(Strings.ImagePullNotSupported)));
Tasks\CreateNewImage.Interface.cs (1)
258TaskResources = Resource.Manager;
Tasks\ParseContainerProperties.cs (1)
83TaskResources = Resource.Manager;