Skip to content
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b749504
Prep for readonly connection
LarryOsterman May 10, 2023
70ecf68
Added options for Connection and Session to enable read-only configur…
LarryOsterman May 12, 2023
9d51ba5
Read-only connection and session objects; use message source and targ…
LarryOsterman May 12, 2023
2d2d7af
Enabled read-only session; added tests for incorrect AMQPS port
LarryOsterman May 16, 2023
15cd3ab
Cleanup of objects
LarryOsterman May 17, 2023
d9fe28e
gcc9 fixes
LarryOsterman May 17, 2023
4724a20
gcc9 fixes 2
LarryOsterman May 17, 2023
c405933
gcc9 fixes 3
LarryOsterman May 17, 2023
f434991
gcc9 fixes 3
LarryOsterman May 17, 2023
3661f19
gcc9 fixes 4
LarryOsterman May 17, 2023
a972875
gcc9 fixes 5
LarryOsterman May 17, 2023
ec67c2a
clang-format; cspell
LarryOsterman May 17, 2023
08b51d7
doxygen
LarryOsterman May 17, 2023
11b8f64
doxygen 2
LarryOsterman May 17, 2023
3a6384b
Fixed line accidentally removed
LarryOsterman May 17, 2023
23b81e8
Sas credentials are azure credentials; removed sas credential option …
LarryOsterman May 18, 2023
68d2bbb
Moved credentials to session; reworked how audience is calculated for…
LarryOsterman May 22, 2023
fe0e7dd
clang-format
LarryOsterman May 22, 2023
da97d9c
clang fix
LarryOsterman May 22, 2023
ee17b57
CI fixes
LarryOsterman May 22, 2023
b72743b
Mac doesn't talk sockets
LarryOsterman May 22, 2023
2f9ef28
Added test-resources.json for samples to ease deployment
LarryOsterman May 23, 2023
28028c5
Updated test-resources.json to grant the test user the ability to rea…
LarryOsterman May 23, 2023
e723b99
Update sdk/core/azure-core-amqp/README.md
LarryOsterman May 24, 2023
8e1bf8b
Added token reader sample; flushed out eventhubs properties sample, a…
LarryOsterman May 24, 2023
72ef244
Merge branch 'larryo/readonlyconnectionandsession' of https://github.…
LarryOsterman May 24, 2023
875c890
PUll request feedback
LarryOsterman May 24, 2023
604d4ce
More PR feedback
LarryOsterman May 24, 2023
e956dc6
PR feedback
LarryOsterman May 24, 2023
6cd6401
Moved AMQP samples to internal
LarryOsterman May 24, 2023
c2ced30
Moved samples to use GetEnvHelper
LarryOsterman May 24, 2023
e535e60
PR feedback; Don't poll when connection is in the 'End' state
LarryOsterman May 24, 2023
850d0e6
clang-format
LarryOsterman May 24, 2023
35c1706
Improved diagnostics for cbs open to help detect CBS errors in tests
LarryOsterman May 24, 2023
1110c0c
More pull request feedback - removed lots of fully qualified namespaces
LarryOsterman May 25, 2023
0c73559
more pull request feedback
LarryOsterman May 26, 2023
8c8277e
clang-format
LarryOsterman May 26, 2023
0759b79
Prevent creation of Messaging static-only class
LarryOsterman May 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/core/azure-core-amqp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ set (AZURE_CORE_AMQP_HEADER
inc/azure/core/amqp/common/global_state.hpp
inc/azure/core/amqp/connection.hpp
inc/azure/core/amqp/connection_string_credential.hpp
inc/azure/core/amqp/endpoint.hpp
inc/azure/core/amqp/link.hpp
inc/azure/core/amqp/message_receiver.hpp
inc/azure/core/amqp/message_sender.hpp
Expand Down
17 changes: 14 additions & 3 deletions sdk/core/azure-core-amqp/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Azure SDK AMQP Library for C++

Azure::Core::Amqp (`azure-core-amqp`) provides an implementation
to enable developers to create Azure SDKs which consume the AMQP protocol.
to enable developers to create Azure SDKs which consume the AMQP protocol. Note that this is *NOT* a general purpose AMQP library, it is intended solely for the purposes of
building Azure C++ SDK clients which communicate with Azure services over AMQP.

## Getting started

### Include the package

The easiest way to acquire the OpenTelemetry library is leveraging vcpkg package manager. See the corresponding [Azure SDK for C++ readme section][azsdk_vcpkg_install].
The easiest way to acquire the AMQP library is leveraging vcpkg package manager. See the corresponding [Azure SDK for C++ readme section][azsdk_vcpkg_install].

To install Azure Core OpenTelemetry package via vcpkg:
To install Azure Core AMQP package via vcpkg:

```cmd
> vcpkg install azure-core-amqp-cpp
Expand All @@ -24,6 +25,16 @@ target_link_libraries(<your project name> PRIVATE Azure::azure-core-amqp)

Comment thread
LarryOsterman marked this conversation as resolved.
## Key concepts

The AMQP Protocol is a relatively complicated protocol which is used by Azure services to communicate with clients. This library provides a
set of classes which can be used to build Azure SDK clients which communicate with Azure services over AMQP.

The AMQP library provides the following classes:

- AmqpClient - The basic client used to communicate with the AMQP server.
- MessageSender - A class which is used to send messages to an AMQP server.
- MessageReceiver - A class which is used to receive messages from an AMQP server.




## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace _detail {
Ok,
Error,
Failed,
InstanceClosed
InstanceClosed,
};

enum class CbsOpenResult
Expand All @@ -30,7 +30,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace _detail {
{
Invalid,
Sas,
Jwt
Jwt,
};

#if defined(TESTING_BUILD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace Common { namespace

void Poll() {}

template <class PT, class... Ts> void Poll(PT const& first, Ts const&... rest)
template <class PT, class... Ts> void Poll(PT & first, Ts &... rest)
{
first.Poll();
Poll(rest...);
Expand Down
Loading