Skip to content

Commit

Permalink
Fixed error occured by namespace changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codespilot committed Jul 7, 2023
1 parent 780f2b1 commit a02f963
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using Castle.DynamicProxy;
using Nerosoft.Euonia.Core;
using Nerosoft.Euonia.Validation;

namespace Nerosoft.Euonia.Application;
Expand Down
2 changes: 2 additions & 0 deletions Source/Euonia.Core/Exceptions/ValidationException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ public ValidationException(string message, IEnumerable<ValidationResult> errors)
_errors = errors;
}

/// <inheritdoc />
protected ValidationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
_errors = info.GetValue(nameof(Errors), typeof(IEnumerable<ValidationResult>)) as IEnumerable<ValidationResult>;
}

/// <inheritdoc />
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
Expand Down
4 changes: 3 additions & 1 deletion Source/Euonia.Domain/Extensions/CommandResponseExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Nerosoft.Euonia.Domain;
using Nerosoft.Euonia.Core;

namespace Nerosoft.Euonia.Domain;

public static class CommandResponseExtensions
{
Expand Down

0 comments on commit a02f963

Please sign in to comment.