Граф коммитов

398 Коммитов

Автор SHA1 Сообщение Дата
Jesse Squire 1607601d3d [ReadMe] Fixing Event Hubs Url Typo (#694) 2019-04-25 11:51:39 -07:00
Sean Feldman 59e2a3c272
Merge pull request #692 from jsquire/dev
[Service Bus Client] ReadMe Content Updates (for archive)
2019-04-25 08:33:44 -06:00
Jesse Squire 6ce04a3e17
[Service Bus Client] ReadMe Content Updates (for archive)
Updated copy to reflect the new location for the Service Bus client library
  and status of this repository as transitioning to a historical archive.

  The contents have been massaged to more closely match the format and voice used
  for the Service Bus client ReadMe in the central repository, in order to ease
  the cognitive burden for those navigating over.  An attempt was also made to
  keep the original introductory content and context.
2019-04-23 16:45:46 -04:00
Neeraj Makam df3156c0a0
Merge branch 'master' into dev 2019-03-26 14:05:16 -07:00
Sean Feldman f4062092d6 Bump Microsoft.Azure.Amqp to 2.4.2 (#676) 2019-03-26 14:04:34 -07:00
Neeraj Makam bf31ba9c3f
Merge pull request #674 from Azure/dev
Updating version to 3.4.0
2019-03-25 13:57:11 -07:00
Neeraj Makam 3e98726fba
Updating version to 3.4.0 (#673) 2019-03-25 13:56:06 -07:00
Sean Feldman 02c03d6bf5
Merge pull request #670 from Azure/master
Master
2019-03-20 17:21:34 -07:00
Sean Feldman ff1093d6c5
Merge pull request #669 from Azure/release-3.4.0
Release 3.4.0
2019-03-20 17:05:19 -07:00
Sean Feldman 41551d7afa
Merge branch 'master' into release-3.4.0 2019-03-20 15:54:39 -07:00
Erik Mogensen 9adfd3052a Enable use of the proxy (#668)
I believe this fixes #436

It has been been tested running in .NET Framework 4.7.2 and .NET Core 2.1 on Windows. It is assumed that the proxy is only used in transportMode=AmqpWebSockets.
2019-03-20 15:49:07 -07:00
Cédric Luthi 69860ed882 Fix "The 'licenseUrl' element will be deprecated" error (#666)
When generating the package, the NuGet task emits this warning:

> The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead.

Since `TreatWarningsAsErrors` is set to true in Directory.Build.props it becomes an error.

So we simply ignore this warning since we can't use 'license' instead of 'licenseUrl' yet.

See also https://github.com/NuGet/Home/issues/7509 and https://github.com/NuGet/Announcements/issues/32
2019-03-18 16:29:45 -07:00
Cédric Luthi 8f61919413 Add support for configuring OperationTimeout in the connection string (#644)
* Add support for configuring OperationTimeout in the connection string

Like in [Microsoft.ServiceBus.Messaging (.NET Framework)][1], it's now possible to configure the `OperationTimeout` in the connection string.

The `ServiceBusConnection` class constructors are adapted to read the `OperationTimeout` from the connection string and the constructor explicitly having a `TimeSpan operationTimeout` argument is obsoleted with this message:
> Please use the constructor with (string namespaceConnectionString, RetryPolicy retryPolicy) arguments and define the operationTimeout in the connection string.

[1]: https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.servicebusconnectionstringbuilder.operationtimeout

* Use the operation timeout defined in the connection string for the ManagementClient

Also, **actually** use the operation timeout as a timeout for the `HttpClient` responsible for the management operations instead of storing the `Constants.DefaultOperationTimeout` in a private field which is never used.

* Update API Approvals

* Always append key value pair delimiter when building the connection string

* Improve wording as suggested by @SeanFeldman

* Improve operation timeout parsing

Parse as int (seconds) first, fallback on TimeSpan parsing for compatibility with WindowsAzure.ServiceBus.

* Throw if the operation timeout input is neither parsable as int or TimeSpan.
* Throw if the operation timeout is smaller than or equal to zero.
* Throw if the operation timeout is greater than or equal to one hour.
2019-03-16 09:36:47 -06:00
Andrew Janke 283a45e82d Separate Issue Template into bug report and feature request (#507) (#665) 2019-03-14 12:06:30 -07:00
Sean Feldman 196996c7a8
Update dependencies (#664)
* Bump Microsoft.NET.Test.Sdk from 15.6.2 to 16.0.1 (#663)

Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 15.6.2 to 16.0.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v15.6.2...v16.0.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump System.Diagnostics.DiagnosticSource from 4.4.1 to 4.5.1 (#662)

Bumps [System.Diagnostics.DiagnosticSource](https://github.com/dotnet/corefx) from 4.4.1 to 4.5.1.
- [Release notes](https://github.com/dotnet/corefx/releases)
- [Commits](https://github.com/dotnet/corefx/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump WindowsAzure.ServiceBus from 4.1.2 to 5.1.0 (#661)

Bumps WindowsAzure.ServiceBus from 4.1.2 to 5.1.0.

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump ApprovalUtilities from 3.0.18 to 3.0.21 (#660)

Bumps [ApprovalUtilities](https://github.com/approvals/ApprovalTests.Net) from 3.0.18 to 3.0.21.
- [Release notes](https://github.com/approvals/ApprovalTests.Net/releases)
- [Commits](https://github.com/approvals/ApprovalTests.Net/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Bump ApprovalTests from 3.0.18 to 3.0.21 (#659)

Bumps [ApprovalTests](https://github.com/approvals/ApprovalTests.Net) from 3.0.18 to 3.0.21.
- [Release notes](https://github.com/approvals/ApprovalTests.Net/releases)
- [Commits](https://github.com/approvals/ApprovalTests.Net/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-12 23:31:13 -06:00
Sean Feldman edecadd664
Bump Microsoft.Azure.Amqp to 2.4.1 (#656) 2019-03-11 23:39:23 -06:00
Sean Feldman 7b4e14ee5c
Return zero for message Size when body is null (#657)
Fixes #648
2019-03-11 22:22:52 -06:00
Sean Feldman b70ddf652c
Allow sending empty collection by skipping the actual send (#642)
* Allow sending empty collection by skipping the actual send

* Rename test

* Improve test and add a message to help in case result is flaky

* Remove unnecessary check covered by foreach
2019-02-15 12:41:30 -07:00
Sean Feldman a4e4abbe5f
Fix NamespaceClient.GetNamespaceInfoAsync() (#638)
* Parse out MessagingUnits

* Add Messaging type as that's what broker reports

* Update test for GetNamespaceInfoAsync

* Approve API (minor)

* Revert "Approve API (minor)"

This reverts commit dd9b2986fb.

* Remove NamespaceType.Messaging

* Implement workaround
2019-02-11 17:58:15 -07:00
Sean Feldman e3b417d008
Merge pull request #633 from Azure/dev
Release 3.3.0
2019-01-17 02:07:06 -07:00
Sean Feldman da12ac540e
Merge branch 'master' into dev 2019-01-17 00:27:35 -07:00
Sean Feldman 1a1ba27272
Bump to release 3.3.0 2019-01-17 00:11:44 -07:00
mnordlindh 5ef1b5b928 Fix equality check for QueueDescription (#629)
The equality check between a manually created created instance of the QueueDescription class and an instance parsed from the XML response by the ManagementClient will not be considered equal. This is an issue when doing operations like create a queue if it is non existing.
The issue is originated in the property AuthorizationRules that was setting the underlying field if it was null. When an instance is being parsed from an non-existing set of rules in the XML response this property is set to an empty AuthorizationRules instance.
I decided to remove the underlying variable for simplicity and set a default value (empty AuthorizationRules instace) to remove the state-changing-getter that just seems to complicate things.
2019-01-16 16:38:34 -08:00
Neeraj Makam 25492708c7 Added GetNamespaceInfo API (#585)
* Added GetNamespaceInfo API

* Adding serialization for alias

* Minor changes

* Updating API list

* Nit changes

Co-Authored-By: nemakam <neeraj.makam@microsoft.com>

* PR Review change
2019-01-11 17:37:43 -07:00
Sean Feldman 6a7319e1a0
Update PublicApiGenerator 2019-01-10 22:10:17 -07:00
Sean Feldman b9b6f0076a
Update dependencies (#625)
* Update test dependencies

* Update SourceLink library

* Add verifications API approver now includes (quality/inequality operators)
2018-12-20 01:32:12 -07:00
Sean Feldman d70d83ec16
Merge branch 'dev' 2018-12-14 15:32:43 -07:00
Sean Feldman d478a3c80c
Prepare release 3.2.1 (#623) 2018-12-14 15:29:12 -07:00
Sean Feldman a1e637d1c7 Do not retry when there's an ambient transaction (#621)
* Do not retry when there's an ambient transaction
Fixes #615
2018-12-13 16:59:07 -08:00
Sean Feldman cdff4112a9 Update Microsoft.Azure.Amqp to the latest version (#618)
* Bump Microsoft.Azure.Amqp to 2.3.6

* Bump Microsoft.Azure.Amqp to 2.3.7
2018-12-11 18:28:53 -08:00
Neeraj Makam 9b22eabf5a
Merge pull request #608 from Azure/dev
Release 3.2.0
2018-11-26 16:58:26 -08:00
Neeraj Makam 47307b6c29
Merge branch 'master' into dev 2018-11-21 15:43:47 -08:00
Neeraj Makam 5c916f59bf
Updating version to 3.2.0 (#607) 2018-11-21 15:43:14 -08:00
Sean Feldman 129a46949f MaximumDuplicateDetectionHistoryTimeWindow should be 7 days and not 1 (#593)
* Fixes #592 - MaximumDuplicateDetectionHistoryTimeWindow should be 7 days and not 1
2018-11-20 20:09:22 -08:00
Sean Feldman c3503864b2 Re-enable multi-targeting (#605)
Fixes #600 

* Re-enable multi-targeting
* Revert changes made in 555cabf3c6
* Fix errors for ManagementClient that was added when only netstandard2.0 was targeted.
2018-11-19 17:30:59 -08:00
Sean Feldman bf6acc9f25 Keep delivery count as-is when peeking a message (#590)
Fixes #589

* Verification test
* Differentiate between peek and receive operations
* Indicate peek operation
* Additional test case to verify behavior when message is received
* Test delivery count on peek against real queue
* Test delivery count on peeklock against real queue
2018-11-19 17:28:30 -08:00
Neeraj Makam e5552e8cd2
Removed Timer object from RetryPolicy which was getting leaked. Instead using Task.Delay (#587)
This timer object was never being disposed and was getting leaked.
Instead using Task.Delay to achieve the same.
Fix for #535
2018-10-12 12:14:45 -07:00
Sean Feldman 435c25957c Fix typo (#583) 2018-10-04 19:30:37 -07:00
Sean Feldman dd9d607574 Swithch to Microsoft SourceLink (#561)
* Use Microsoft Source link

* Package PDB file for sourcelink to work

* Embed untracked sources in the package for sourcelink to work for sources that are not committed

* Add repo URL / type / commit hash to the generated nuget package

* SourceLink package should be set with PrivateAssets="All"
2018-10-04 18:57:00 -07:00
Neeraj Makam 1b5602331d
Updating Readme for Management operations
ManagementClient has been released and we no longer need to redirect to the separate management library.
2018-10-03 19:39:15 -07:00
Sean Feldman 93ab7b0baf Fix #579 - correct error message (#580)
Fixes #579
For an empty list do not throw argument null exception
2018-10-03 18:40:26 -07:00
Ryan Spletzer 1d5df378a5 Changing topicName param to topicPath in CreateRuleAsync, fixing variable typo in CreateRuleAsync (#546)
* Changing topicName to topicPath in CreateRuleAsync
CreateRuleAsync uses topicName as a parameter whereas the rest of the methods use topicPath. Changing for consistency.
* Fixing var typo in CreateRuleAsync
* Updating ApiApprovals.ApproveAzureServiceBus.approved.txt
* Adding back in trimmed whitespace to approved txt file to resolve unit test issue
* Fixed topicPath description in comments
2018-10-03 14:38:27 -07:00
Neeraj Makam b9ae0452cd
Release 3.1.1
Release 3.1.1
2018-09-28 16:34:00 -07:00
Neeraj Makam 1a742c557e
Merge branch 'master' into dev 2018-09-28 14:56:20 -07:00
Neeraj Makam 989af3b2ce
Bumping version to 3.1.1. (#577)
Adding copyrights to nuspec
2018-09-28 14:30:22 -07:00
Håvar Nøvik b7b1106cfb Gracefully handle RenewMessageLockTask (#548)
In the MessageReceivePump class the RenewMessageLockTask is now canceled
gracefully instead of raise a TaskCancelledException and the catch it
again.

The code now doesn't await the canceled task, but await a new task which
just returns the canceled task. And check if the delay task is canceled
to determine if the RenewMessageLockTask should be completed or not.

Fixes #547.
2018-09-24 17:28:35 -07:00
Neeraj Makam c91efcbead
Updating xmlDoc (#575)
Fixes comments in #572
2018-09-24 15:08:41 -07:00
Neeraj Makam cb9c95e41f
Bugfix #544 - Receiving deferred message from sessionful partitioned entity. (#574)
For a partitioned session queue, sessionId is required for receiving deferred messages. Passing the value now.
Fixes #544
2018-09-24 11:28:23 -07:00
Neeraj Makam 9b72b1f654
Making Queue/Topic/Subscription descriptions forward compatible (#563) + Minor bugs (#572)
Fixes-
#563 - Making Queue/Topic/Subscription descriptions forward compatible by storing all unknown properties in a list and relaying it back during Update.
#564 - Equals() should not use == to check for null
#562 - NRE when content = null.
NRE when GetRules() is invoked on rules containing custom data types.
2018-09-21 19:36:02 -07:00
Neeraj Makam 9a8edface5
Updating min amqp version to 2.3.5 since it contains an important reliability fix (#573) 2018-09-21 17:28:18 -07:00