Skip to content

Commit

Permalink
升级版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxuehua committed Aug 6, 2020
1 parent a1d3efb commit 1f027df
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ENode.EQueue/ENode.EQueue.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>2.1.7</Version>
<AssemblyVersion>2.1.7.0</AssemblyVersion>
<Version>2.1.8</Version>
<AssemblyVersion>2.1.8.0</AssemblyVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
6 changes: 3 additions & 3 deletions src/ENode/ENode.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>3.0.1</Version>
<AssemblyVersion>3.0.1.0</AssemblyVersion>
<FileVersion>3.0.1.0</FileVersion>
<Version>3.0.2</Version>
<AssemblyVersion>3.0.2.0</AssemblyVersion>
<FileVersion>3.0.2.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
18 changes: 18 additions & 0 deletions src/ENode/Eventing/DuplicateEventStreamException.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;

namespace ENode.Eventing
{
public class DuplicateEventStreamException : Exception
{
private const string ExceptionMessage = "Aggregate root [type={0},id={1}] event stream already exist in the EventCommittingContextMailBox, eventStreamId: {2}";

public DomainEventStream DomainEventStream { get; set; }

/// <summary>Parameterized constructor.
/// </summary>
public DuplicateEventStreamException(DomainEventStream domainEventStream) : base(string.Format(ExceptionMessage, domainEventStream.AggregateRootTypeName, domainEventStream.AggregateRootId, domainEventStream.Version))
{
DomainEventStream = domainEventStream;
}
}
}

0 comments on commit 1f027df

Please sign in to comment.