Skip to content

Commit

Permalink
Update projects targeting net6 to net8 - part3 (#9021)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSuplizio authored Sep 20, 2024
1 parent 30d6dcc commit 6db814c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<VersionPrefix>0.1.0</VersionPrefix>

<PackAsTool>true</PackAsTool>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AzureFunctionsVersion>v3</AzureFunctionsVersion>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Text;

Expand All @@ -10,8 +10,5 @@ public class RouterConfigurationException : RouterException
public RouterConfigurationException() { }
public RouterConfigurationException(string message) : base(message) { }
public RouterConfigurationException(string message, Exception inner) : base(message, inner) { }
protected RouterConfigurationException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Azure.Data.AppConfiguration;
using Azure.Data.AppConfiguration;
using Azure.Identity;
using Azure.Messaging.EventHubs;
using Azure.Messaging.EventHubs.Producer;
Expand Down Expand Up @@ -160,7 +160,7 @@ private async Task<byte[]> ReadAndValidateContentFromGitHubAsync(GitHubRule rule
return payloadContent;
}

private SHA256CryptoServiceProvider sha256 = new SHA256CryptoServiceProvider();
private SHA256 sha256 = SHA256.Create();

private async Task<byte[]> ReadAndValidateContentFromAzureDevOpsAsync(AzureDevOpsRule rule, HttpRequest request)
{
Expand Down Expand Up @@ -285,7 +285,7 @@ public async Task RouteAsync(Guid route, HttpRequest request)
payload
);

throw ex;
throw;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Text;

Expand All @@ -10,8 +10,5 @@ public class RouterAuthorizationException : RouterException
public RouterAuthorizationException() { }
public RouterAuthorizationException(string message) : base(message) { }
public RouterAuthorizationException(string message, Exception inner) : base(message, inner) { }
protected RouterAuthorizationException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Text;

Expand All @@ -10,8 +10,5 @@ public class RouterException : Exception
public RouterException() { }
public RouterException(string message) : base(message) { }
public RouterException(string message, Exception inner) : base(message, inner) { }
protected RouterException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
}
}

0 comments on commit 6db814c

Please sign in to comment.