Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwoctopusdeploy committed Dec 1, 2023
1 parent e0e91c1 commit 7e2e51b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions source/Octopus.Tentacle.Client/TentacleClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public static void CacheServiceWasNotFoundResponseMessages(IHalibutRuntime halib
var innerHandler = halibutRuntime.OverrideErrorResponseMessageCaching;
halibutRuntime.OverrideErrorResponseMessageCaching = response =>
{
if (BackwardsCompatibleCapabilitiesV2Helper.ExceptionTypeLooksLikeTheServiceWasNotFound(response.Error.HalibutErrorType) ||
BackwardsCompatibleCapabilitiesV2Helper.ExceptionMessageLooksLikeTheServiceWasNotFound(response.Error.Message))
if (BackwardsCompatibleCapabilitiesV2Helper.ExceptionTypeLooksLikeTheServiceWasNotFound(response.Error!.HalibutErrorType!) ||
BackwardsCompatibleCapabilitiesV2Helper.ExceptionMessageLooksLikeTheServiceWasNotFound(response.Error!.Message))
{
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected override void Load(ContainerBuilder builder)

var halibutRuntime = new HalibutRuntimeBuilder()
.WithServiceFactory(services)
.WithServerCertificate(configuration.TentacleCertificate)
.WithServerCertificate(configuration.TentacleCertificate!)
.WithMessageSerializer(serializerBuilder => serializerBuilder.WithLegacyContractSupport())
.WithHalibutTimeoutsAndLimits(halibutTimeoutsAndLimits)
.Build();
Expand Down
4 changes: 2 additions & 2 deletions source/Octopus.Tentacle/Configuration/ProxyConfigParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ public class ProxyConfigParser : IProxyConfigParser
{
log.Info($"Agent will use the octopus configured proxy at {config.CustomProxyHost}:{config.CustomProxyPort} for server at {destination}");
return string.IsNullOrWhiteSpace(config.CustomProxyUsername)
? new ProxyDetails(config.CustomProxyHost,
? new ProxyDetails(config.CustomProxyHost!,
config.CustomProxyPort,
ProxyType.HTTP,
null,
null) //Don't use default creds for custom proxy if user has not supplied any
: new ProxyDetails(config.CustomProxyHost,
: new ProxyDetails(config.CustomProxyHost!,
config.CustomProxyPort,
ProxyType.HTTP,
config.CustomProxyUsername,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task<DataStream> DownloadFileAsync(string remotePath, CancellationT

public async Task<UploadResult> UploadFileAsync(string remotePath, DataStream upload, CancellationToken cancellationToken)
{
if (upload == null)
if (upload == null!)
{
log.Trace("Client requested a file upload, but no content stream was provided.");
return new UploadResult(ResolvePath(remotePath), null!, 0);
Expand Down

0 comments on commit 7e2e51b

Please sign in to comment.