void AddReference()
{
if (Interlocked.Increment(ref this.references) == 1)
{
Interlocked.Decrement(ref this.references);
var exception = new InvalidOperationException(AmqpResources.AmqpBufferAlreadyReclaimed);
AmqpTrace.Provider.AmqpThrowingExceptionError(ExceptionTrace.GetDetailsForThrownException(exception));
throw Fx.Exception.AsError(exception);
}
}