Skip to content

Commit

Permalink
Merge pull request #117 from Azure/develop
Browse files Browse the repository at this point in the history
Develop to master
  • Loading branch information
xinchen10 authored Aug 29, 2018
2 parents 5af755a + 8629bbd commit 270da80
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
17 changes: 15 additions & 2 deletions Microsoft.Azure.Amqp/Amqp/ReceivingAmqpLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ static void OnTimer(object state)
}
}

sealed class DisposeAsyncResult : AsyncResult, IWork<DeliveryState>
sealed class DisposeAsyncResult : TimeoutAsyncResult<string>, IWork<DeliveryState>
{
readonly ReceivingAmqpLink link;
readonly ArraySegment<byte> deliveryTag;
Expand All @@ -758,7 +758,7 @@ public DisposeAsyncResult(
TimeSpan timeout,
AsyncCallback callback,
object state)
: base(callback, state)
: base(timeout, callback, state)
{
this.link = link;
this.deliveryTag = deliveryTag;
Expand All @@ -775,6 +775,7 @@ public static Outcome End(IAsyncResult result)

public void Start()
{
this.SetTimer();
DeliveryState deliveryState;
if (txnId.Array != null)
{
Expand Down Expand Up @@ -821,6 +822,18 @@ public void Cancel(bool completedSynchronously, Exception exception)
{
this.Complete(completedSynchronously, exception);
}

protected override string Target
{
get { return "dispose"; }
}

protected override void CompleteOnTimer()
{
// Timeout
this.link.pendingDispositions.CompleteWork(this.deliveryTag, true, AmqpConstants.RejectedOutcome);
base.CompleteOnTimer();
}
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Azure.Amqp/Amqp/Transport/TlsTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class TlsTransport : TransportBase, IDisposable
static readonly AsyncCallback onWriteComplete = OnWriteComplete;
static readonly AsyncCallback onReadComplete = OnReadComplete;
readonly TransportBase innerTransport;
readonly CustomSslStream sslStream;
protected readonly CustomSslStream sslStream;
TlsTransportSettings tlsSettings;
OperationState writeState;
OperationState readState;
Expand Down
1 change: 1 addition & 0 deletions Microsoft.Azure.Amqp/Microsoft.Azure.Amqp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<Configurations>Debug;Release;Signed</Configurations>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Azure.Amqp/Properties/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
using System.Runtime.InteropServices;

[assembly: AssemblyVersion("2.3.0.0")]
[assembly: AssemblyInformationalVersion("2.3.2")]
[assembly: AssemblyInformationalVersion("2.3.3")]

0 comments on commit 270da80

Please sign in to comment.