Dotnet 8.x Update

- updated all nugets to latest 8.x versions
- linting fixes
- switched the application insights to use the connection string.
This commit is contained in:
Brett Hewitson 2025-03-21 06:46:38 +10:00
parent 5d8fe6ca90
commit f5a96f965a
19 changed files with 64 additions and 98 deletions

View file

@ -1,30 +1,27 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace ServerManager.WebApplication.Models;
public class ServerManagerApiException : Exception
{
public ServerManagerApiException() : base()
public ServerManagerApiException()
{ }
public ServerManagerApiException(int statusCode, ICollection<string> messages) : base()
public ServerManagerApiException(int statusCode, ICollection<string> messages)
{
StatusCode = statusCode;
Messages = messages;
}
public ServerManagerApiException(int statusCode, ICollection<string> messages, Exception innerException) : base(null, innerException)
public ServerManagerApiException(int statusCode, ICollection<string> messages, Exception innerException)
: base(null, innerException)
{
StatusCode = statusCode;
Messages = messages;
}
protected ServerManagerApiException(SerializationInfo info, StreamingContext context) : base(info, context)
{ }
public int StatusCode { get; private set; } = 0;
public int StatusCode { get; private set; }
public ICollection<string> Messages { get; private set; } = new List<string>();
}
}