Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Updating verison to 3.0.
Browse files Browse the repository at this point in the history
Resolved Merge conflicts
  • Loading branch information
makam committed May 14, 2018
1 parent 6db9dd7 commit 09b5d5c
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public MessageReceiver InnerReceiver
MessagingEntityType.Subscriber,
this.ReceiveMode,
this.ServiceBusConnection,
null,
this.CbsTokenProvider,
this.RetryPolicy,
this.PrefetchCount);
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.Azure.ServiceBus/Core/MessageReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ internal MessageReceiver(
MessagingEntityType? entityType,
ReceiveMode receiveMode,
ServiceBusConnection serviceBusConnection,
ITokenProvider tokenProvider,
ICbsTokenProvider cbsTokenProvider,
RetryPolicy retryPolicy,
int prefetchCount = Constants.DefaultClientPrefetchCount,
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.Azure.ServiceBus/Core/MessageSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ internal MessageSender(
string transferDestinationPath,
MessagingEntityType? entityType,
ServiceBusConnection serviceBusConnection,
ITokenProvider tokenProvider,
ICbsTokenProvider cbsTokenProvider,
RetryPolicy retryPolicy)
: base(nameof(MessageSender), entityPath, retryPolicy ?? RetryPolicy.Default)
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Azure.ServiceBus/MessageSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public MessageSession(
int prefetchCount = Constants.DefaultClientPrefetchCount,
string sessionId = null,
bool isSessionReceiver = false)
: base(entityPath, entityType, receiveMode, serviceBusConnection, null, cbsTokenProvider, retryPolicy, prefetchCount, sessionId, isSessionReceiver)
: base(entityPath, entityType, receiveMode, serviceBusConnection, cbsTokenProvider, retryPolicy, prefetchCount, sessionId, isSessionReceiver)
{
this.diagnosticSource = new ServiceBusDiagnosticSource(entityPath, serviceBusConnection.Endpoint);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>This is the next generation Azure Service Bus .NET Standard client library that focuses on queues &amp; topics. For more information about Service Bus, see https://azure.microsoft.com/en-us/services/service-bus/</Description>
<VersionPrefix>3.0.0-preview-01</VersionPrefix>
<VersionPrefix>3.0.0</VersionPrefix>
<Authors>Microsoft</Authors>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyOriginatorKeyFile>../../build/keyfile.snk</AssemblyOriginatorKeyFile>
Expand Down
3 changes: 0 additions & 3 deletions src/Microsoft.Azure.ServiceBus/QueueClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ internal MessageSender InnerSender
null,
MessagingEntityType.Queue,
this.ServiceBusConnection,
null,
this.CbsTokenProvider,
this.RetryPolicy);
}
Expand All @@ -265,7 +264,6 @@ internal MessageReceiver InnerReceiver
MessagingEntityType.Queue,
this.ReceiveMode,
this.ServiceBusConnection,
null,
this.CbsTokenProvider,
this.RetryPolicy,
this.PrefetchCount);
Expand Down Expand Up @@ -294,7 +292,6 @@ internal SessionClient SessionClient
this.ReceiveMode,
this.PrefetchCount,
this.ServiceBusConnection,
null,
this.CbsTokenProvider,
this.RetryPolicy,
this.RegisteredPlugins);
Expand Down
2 changes: 0 additions & 2 deletions src/Microsoft.Azure.ServiceBus/SessionClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public SessionClient(
prefetchCount,
new ServiceBusConnection(connectionString),
null,
null,
retryPolicy,
null)
{
Expand Down Expand Up @@ -169,7 +168,6 @@ internal SessionClient(
ReceiveMode receiveMode,
int prefetchCount,
ServiceBusConnection serviceBusConnection,
ITokenProvider tokenProvider,
ICbsTokenProvider cbsTokenProvider,
RetryPolicy retryPolicy,
IList<ServiceBusPlugin> registeredPlugins)
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.Azure.ServiceBus/SubscriptionClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ internal SessionClient SessionClient
this.ReceiveMode,
this.PrefetchCount,
this.ServiceBusConnection,
null,
this.CbsTokenProvider,
this.RetryPolicy,
this.RegisteredPlugins);
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.Azure.ServiceBus/TopicClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ internal MessageSender InnerSender
null,
MessagingEntityType.Topic,
this.ServiceBusConnection,
null,
this.CbsTokenProvider,
this.RetryPolicy);
}
Expand Down
38 changes: 0 additions & 38 deletions test/Microsoft.Azure.ServiceBus.UnitTests/MessageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,43 +188,5 @@ public async void LargeMessageShouldThrowMessageSizeExceededException()
await queueClient.CloseAsync();
}
}

[Theory]
[DisplayTestMethodName]
[InlineData(null)]
[InlineData("123")]
[InlineData("jøbber-nå")]
public void Should_return_string_representation_of_message(string id)
{
var message = new Message();
if (id != null)
{
message.MessageId = id;
}
var result = message.ToString();
Assert.Equal($"{{MessageId:{id}}}", result);
}

[Fact]
public async void LargeMessageShouldThrowMessageSizeExceededException()
{
var queueClient = new QueueClient(TestUtility.NamespaceConnectionString, TestConstants.NonPartitionedQueueName, ReceiveMode.PeekLock);

try
{
// 2 MB message.
var message = new Message(new byte[1024 * 1024 * 2]);
await Assert.ThrowsAsync<MessageSizeExceededException>(async () => await queueClient.SendAsync(message));
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
finally
{
await queueClient.CloseAsync();
}
}
}
}

0 comments on commit 09b5d5c

Please sign in to comment.