Merge pull request #36 from c80k/interception

pull back changes
This commit is contained in:
c80k 2019-12-29 23:45:48 +01:00 committed by GitHub
commit abe9921ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 10 deletions

View File

@ -482,7 +482,7 @@ namespace Capnp.Net.Runtime.Tests
bool flag = call0.Wait(MediumNonDbgTimeout);
Assert.IsTrue(flag);
}
catch (RpcException exception) when (exception.Message == "Cannot access a disposed object.")
catch (AggregateException exception) when (exception.InnerException is RpcException rpcException && rpcException.Message == "Cannot access a disposed object.")
{
Logger.Log(LogLevel.Information, $"Oops, object disposed. Counter = {cap.Count}, tx count = {client.SendCount}, rx count = {client.RecvCount}");
throw;

View File

@ -18,7 +18,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>Git</RepositoryType>
<PackageTags>capnp "Cap'n Proto" RPC serialization cerealization</PackageTags>
<Version>1.2-local$([System.DateTime]::UtcNow.ToString(yyMMddHHmm))</Version>
<Version>1.3-local$([System.DateTime]::UtcNow.ToString(yyMMddHHmm))</Version>
<Configurations>Debug;Release</Configurations>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

View File

@ -72,7 +72,7 @@ namespace Capnp.Rpc
{
--_refCount;
throw new ObjectDisposedException(nameof(ConsumedCapability));
throw new ObjectDisposedException(ToString(), "Attempted to add reference to capability which was already released");
}
}
}
@ -106,7 +106,7 @@ namespace Capnp.Rpc
{
if (_refCount <= 0)
{
throw new ObjectDisposedException(nameof(ConsumedCapability), "Validation failed, capability is already disposed");
throw new ObjectDisposedException(ToString(), "Validation failed, capability is already disposed");
}
}
}

View File

@ -9,9 +9,9 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
<Version>1.1-local$([System.DateTime]::UtcNow.ToString(yyMMddHHmm))</Version>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<FileVersion>1.3.0.0</FileVersion>
<Version>1.3-local$([System.DateTime]::UtcNow.ToString(yyMMddHHmm))</Version>
<NuspecFile>$(MSBuildThisFileDirectory)CapnpC.CSharp.MsBuild.Generation.nuspec</NuspecFile>
<NuspecProperties>version=$(Version);configuration=$(Configuration)</NuspecProperties>

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<Version>1.1-local</Version>
<Version>1.3-local</Version>
<Configurations>Debug;Release</Configurations>
<PackageReferenceVersion Condition="'$(PackageReferenceVersion)'==''">$(Version)*</PackageReferenceVersion>
</PropertyGroup>

View File

@ -1,4 +1,4 @@
version: '1.2.{build}'
version: '1.3.{build}'
image: Visual Studio 2019
# branches:
# only:

View File

@ -13,7 +13,7 @@
<PackageProjectUrl>https://github.com/c80k/capnproto-dotnetcore</PackageProjectUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>capnp capnpc RPC serialization cerealization</PackageTags>
<Version>1.2.0</Version>
<Version>1.3.0</Version>
<Configurations>Debug;Release</Configurations>
</PropertyGroup>