Skip to content

Commit

Permalink
Net8 migration fixes (#128)
Browse files Browse the repository at this point in the history
* .NET 8 migration

* .net 8 migration fixes

---------

Co-authored-by: Andrii Kaplanovskyi <andrii.kaplanovskyi@dcslsoftware.com>
  • Loading branch information
andriikaplanovskyi and andrii-kaplanovskyi authored Nov 16, 2023
1 parent 657fb39 commit 85e695c
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 133 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;
using OneBeyond.Studio.Crosscuts.Exceptions;

namespace OneBeyond.Studio.Application.SharedKernel.Exceptions;
Expand Down Expand Up @@ -32,13 +31,4 @@ protected AuthorizationException(string message, Exception innerException)
: base(message, innerException)
{
}

/// <summary>
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected AuthorizationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using OneBeyond.Studio.Domain.SharedKernel.Authorization;

namespace OneBeyond.Studio.Application.SharedKernel.Exceptions;
Expand Down Expand Up @@ -31,14 +30,6 @@ public AuthorizationPolicyFailedException(
Exceptions = exceptions;
}

private AuthorizationPolicyFailedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
Policy = null!;
RequestType = null!;
Exceptions = null!;
}

/// <summary>
/// </summary>
public AuthorizationPolicyAttribute Policy { get; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;

namespace OneBeyond.Studio.Application.SharedKernel.Exceptions;

Expand All @@ -17,12 +16,6 @@ public AuthorizationPolicyMissingException(Type requestType)
RequestType = requestType;
}

private AuthorizationPolicyMissingException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
RequestType = null!;
}

/// <summary>
/// </summary>
public Type RequestType { get; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;
using OneBeyond.Studio.Crosscuts.Exceptions;

namespace OneBeyond.Studio.Application.SharedKernel.Exceptions;
Expand All @@ -23,9 +22,4 @@ internal IntegrationEventException(string message, Exception innerException)
: base(message, innerException)
{
}

private IntegrationEventException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;
using OneBeyond.Studio.Crosscuts.Exceptions;

namespace OneBeyond.Studio.Application.SharedKernel.Exceptions;
Expand Down Expand Up @@ -30,14 +29,4 @@ public ValidationException(string message, Exception innerException)
: base(message, innerException)
{
}

/// <summary>
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected ValidationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;
using OneBeyond.Studio.Crosscuts.Exceptions;
using OneBeyond.Studio.Domain.SharedKernel.Entities;

Expand Down Expand Up @@ -33,15 +32,6 @@ protected EntityAccessDeniedException(string message, Exception innerException)
: base(message, innerException)
{
}

/// <summary>
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected EntityAccessDeniedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}

/// <summary>
Expand All @@ -66,13 +56,4 @@ public EntityAccessDeniedException(TEntityId entityId)
: base($"Access to entity #{entityId} is denied")
{
}

/// <summary>
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
private EntityAccessDeniedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;
using OneBeyond.Studio.Crosscuts.Exceptions;
using OneBeyond.Studio.Domain.SharedKernel.Entities;

Expand Down Expand Up @@ -33,15 +32,6 @@ protected EntityNotFoundException(string message, Exception innerException)
: base(message, innerException)
{
}

/// <summary>
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected EntityNotFoundException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}

/// <summary>
Expand All @@ -66,13 +56,4 @@ public EntityNotFoundException(TEntityId entityId)
: base($"Entity #{entityId} is not found")
{
}

/// <summary>
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
private EntityNotFoundException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;

namespace OneBeyond.Studio.Crosscuts.Exceptions;

Expand All @@ -22,10 +21,4 @@ internal ExpressionException(string message, Exception innerException)
: base(message, innerException)
{
}

private ExpressionException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}

}
10 changes: 0 additions & 10 deletions src/OneBeyond.Studio.Crosscuts/Exceptions/OneBeyondException.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;

namespace OneBeyond.Studio.Crosscuts.Exceptions;

Expand Down Expand Up @@ -29,13 +28,4 @@ protected OneBeyondException(string message, Exception innerException)
: base(message, innerException)
{
}

/// <summary>
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected OneBeyondException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
10 changes: 0 additions & 10 deletions src/OneBeyond.Studio.Crosscuts/Exceptions/OptionsException.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;

namespace OneBeyond.Studio.Crosscuts.Exceptions;

Expand Down Expand Up @@ -31,13 +30,4 @@ public OptionsException(string message, Exception innerException)
: base(message, innerException)
{
}

/// <summary>
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
private OptionsException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,4 @@ public FileContentValidatorException(string message, Exception innerException)
: base(message, innerException)
{
}

/// <summary>
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
private FileContentValidatorException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;
using OneBeyond.Studio.Crosscuts.Exceptions;

namespace OneBeyond.Studio.Crosscuts.Utilities.FileUploadValidators;
Expand Down Expand Up @@ -32,13 +31,4 @@ public FileSizeValidatorException(string message, Exception innerException)
: base(message, innerException)
{
}

/// <summary>
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
private FileSizeValidatorException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;
using OneBeyond.Studio.Crosscuts.Exceptions;

namespace OneBeyond.Studio.Infrastructure.Azure.Exceptions;
Expand All @@ -20,9 +19,4 @@ public AzureInfrastructureException(string message, Exception innerException)
: base(message, innerException)
{
}

protected AzureInfrastructureException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}

0 comments on commit 85e695c

Please sign in to comment.