Skip to content
Closed
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
723df3f
work in progress
gearama Apr 17, 2023
9c05e78
Merge branch 'feature/amqp' of https://github.com/gearama/azure-sdk-f…
gearama Apr 17, 2023
56fd96b
First pass at sending messages
gearama Apr 20, 2023
a146dae
Merge branch 'feature/amqp' of https://github.com/gearama/azure-sdk-f…
gearama Apr 20, 2023
315967c
sync latest branch
gearama Apr 20, 2023
0a7b619
refactored opening, send to partition, creste senders as needed
gearama Apr 21, 2023
2d12f30
bug fix and retry working
gearama Apr 22, 2023
bd97144
a couple of tests
gearama Apr 24, 2023
3102d42
eew
gearama Apr 24, 2023
8e0bf37
ci2
gearama Apr 24, 2023
0e5b929
oops
gearama Apr 24, 2023
4658d53
ffff
gearama Apr 24, 2023
69f6c12
try2
gearama Apr 24, 2023
10ddb5b
fix 2 comments
gearama Apr 26, 2023
27bbc64
add models for message creation
gearama Apr 26, 2023
f0a917c
consumerClient no tests yet
gearama Apr 27, 2023
f686ef9
oops
gearama Apr 27, 2023
58e005b
iuyiy
gearama Apr 27, 2023
ceacafc
khj
gearama Apr 27, 2023
7f197c1
1.5.0
gearama Apr 27, 2023
8a4175c
mroe cmake
gearama Apr 27, 2023
9ec5a4f
gdfgdf
gearama Apr 27, 2023
3a079dc
add vcpkg.json
gearama Apr 27, 2023
3dda86e
vcpkgs
gearama Apr 27, 2023
aa9720a
try
gearama Apr 27, 2023
4350b7b
consumer working
gearama Apr 28, 2023
b5338b8
working order
gearama May 2, 2023
81e2025
checkpoint store
gearama May 5, 2023
0d42890
merge feature/amqp
gearama May 9, 2023
fd34d3a
LB compiles
gearama May 12, 2023
589f27c
load balancer done and added one test
gearama May 12, 2023
144b120
LB done
gearama May 15, 2023
e306e1f
merge feature/amqp
gearama May 16, 2023
a1680f2
post merge fixes
gearama May 16, 2023
d57ce95
part2
gearama May 16, 2023
a4fc77c
wewe
gearama May 30, 2023
ef325f9
Merge from main latest
gearama May 31, 2023
0e8677a
management sender
gearama Jun 2, 2023
d38a493
dsds
gearama Jun 2, 2023
0425cc4
send batch
gearama Jun 2, 2023
39b2b95
consumer management
gearama Jun 5, 2023
4c95275
dasa
gearama Jun 6, 2023
cd9007b
models and new lines
gearama Jun 8, 2023
1236b40
builds
gearama Jun 11, 2023
f3a5866
compiles all
gearama Jun 12, 2023
95a7f1b
operators= and copy constructors
gearama Jun 13, 2023
f77c578
ewew
gearama Jun 15, 2023
f55cf37
saa
gearama Jun 21, 2023
7c5fbbf
Merge remote-tracking branch 'upstream/feature/amqp' into amqp_gearama2
LarryOsterman Jun 26, 2023
5202039
fix for load balance test
gearama Jun 26, 2023
7edcc8e
Merge branch 'amqp_gearama2' of https://github.com/gearama/azure-sdk-…
LarryOsterman Jun 26, 2023
dc606a2
CI pipeline updates
LarryOsterman Jun 26, 2023
70c1316
cspell
LarryOsterman Jun 26, 2023
38cc600
clang-format
LarryOsterman Jun 26, 2023
19ace02
Merge branch 'feature/amqp' into amqp_gearama2
LarryOsterman Jun 26, 2023
c448ad0
fixed issue exposed by clang-format
LarryOsterman Jun 26, 2023
86a3cb0
cspell fixes
LarryOsterman Jun 26, 2023
3a244da
more cspell fixes
LarryOsterman Jun 26, 2023
f3d167b
still more cspell fixes
LarryOsterman Jun 26, 2023
5e82d5c
gcc fixes
LarryOsterman Jun 26, 2023
3a23542
clang fix
LarryOsterman Jun 26, 2023
47032a0
building eventhubs service, not messaging service
LarryOsterman Jun 26, 2023
cc9c566
Try removing amqp dependency for eventhubs temporarily
LarryOsterman Jun 27, 2023
5376400
Removed explicit version for azure core and storage
LarryOsterman Jun 27, 2023
bb7c51c
clang fixes
LarryOsterman Jun 27, 2023
91d7f2f
clang-format; compiler fixes
LarryOsterman Jun 27, 2023
a3260ea
32 bit build fixes
LarryOsterman Jun 27, 2023
496c057
Removed unused variable ENABLE_AZURE_CORE_AMQP; renamed MESSAGING tar…
LarryOsterman Jun 27, 2023
acdd494
Added empty assets.json file for eventhubs for now
LarryOsterman Jun 27, 2023
7b68e43
Different assets.json file
LarryOsterman Jun 27, 2023
fce322c
Marked eventhubs tests that require live server as LIVEONLY; eventhub…
LarryOsterman Jun 27, 2023
2be4c20
Correctly tag test methods as live only
LarryOsterman Jun 27, 2023
a4dcb3f
clang-format; don't disable eventhubs on uwp build
LarryOsterman Jun 27, 2023
1ff3636
disable eventhubs on uwp build
LarryOsterman Jun 27, 2023
7e56bc5
Don't try to build if the targets-build.txt file doesn't exist
LarryOsterman Jun 27, 2023
9288971
Don't get binary sizes if the target file does not exist
LarryOsterman Jun 27, 2023
d72d89c
Made AMQP model values private again; Set correct message format on b…
LarryOsterman Jul 5, 2023
a88b727
clang-format
LarryOsterman Jul 5, 2023
e45223f
fixed clang build issues
LarryOsterman Jul 5, 2023
c65cbd6
renamed azure-messaging-eventhubs to messaging-eventhubs
LarryOsterman Jul 5, 2023
4807ab6
Added doccomment
LarryOsterman Jul 5, 2023
aaaa5d8
clang-format
LarryOsterman Jul 5, 2023
7bccde8
Merge remote-tracking branch 'upstream/feature/amqp' into amqp_gearama2
LarryOsterman Jul 5, 2023
36ab136
Start of doxygen slog
LarryOsterman Jul 6, 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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ add_subdirectory(sdk/core)
add_subdirectory(sdk/attestation)
# AMQP doesn't work for UWP yet, and eventhubs depends on AMQP, so we cannot include eventhubs on UWP.
if (NOT BUILD_WINDOWS_UWP)
add_subdirectory(sdk/eventhubs)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By convention, we use 2 spaces to indent cmake conditionals, not 4.

add_subdirectory(sdk/eventhubs)
endif()
add_subdirectory(sdk/identity)
add_subdirectory(sdk/keyvault)
Expand Down
3 changes: 2 additions & 1 deletion CMakeSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"value": "True",
"type": "BOOL"
}
]
],
"cmakeToolchain": "D:/vcpkg/scripts/buildsystems/vcpkg.cmake"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't hardcode the path.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't be making changes to CMakeSettings.json but instead be changing files in cmakepresets.json. I'm also not 100% sure why we would ever need to include the location for the cmake toolchain file this way.

},
{
"name": "x64-DebugWithTests-OpenSSL111",
Expand Down
7 changes: 7 additions & 0 deletions cmake-modules/FolderList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ macro(GetFolderList project)
elseif(${project} STREQUAL STORAGE_QUEUES)
DownloadDepVersion(sdk/core azure-core 1.5.0)
DownloadDepVersion(sdk/storage/azure-storage-common azure-storage-common 12.2.3)
elseif(${project} STREQUAL MESSAGING)
DownloadDepVersion(sdk/core azure-core 1.8.0)
DownloadDepVersion(sdk/storage/azure-storage-common azure-storage-common 12.3.1)

@antkmsft antkmsft Jun 13, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
elseif(${project} STREQUAL MESSAGING)
DownloadDepVersion(sdk/core azure-core 1.8.0)
DownloadDepVersion(sdk/storage/azure-storage-common azure-storage-common 12.3.1)
elseif(${project} STREQUAL MESSAGING)
DownloadDepVersion(sdk/core azure-core 1.10.0)
DownloadDepVersion(sdk/core azure-core-amqp)
DownloadDepVersion(sdk/storage/azure-storage-blobs azure-storage-blobs 12.7.0)

elseif(${project} STREQUAL STORAGE_FILES_DATALAKE)
endif()
list(REMOVE_DUPLICATES BUILD_FOLDERS)
endmacro()
Expand All @@ -52,6 +56,9 @@ endmacro()

macro(SetCompileOptions project)
message ("setting up compile options for ${project}")
if(${project} STREQUAL MESSAGING)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe this is required any more.

option(ENABLE_AZURE_CORE_AMQP "Enable AMQP." ON)
endif()
# Compile Options
SetGlobalOptions()
endmacro()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace _internal {
*/
class Management final {
public:
Management() = default;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't have a default constructor for a Management object, they only make sense when constructed with at least a Session object.

/**
* @brief Create a new Management object instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace Models {

using UniqueMessageHeaderHandle = Azure::Core::_internal::UniqueHandle<HEADER_INSTANCE_TAG>;

struct MessageHeader final

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In what circumstances are you going to derive a class from the MessageHeader? Generally these should be final types.

struct MessageHeader
{

MessageHeader() = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace Models {

constexpr int AmqpMessageFormatValue = 0; // Specifies the message format for an AMQP message.

class AmqpMessage final {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as MessageHeader - why remove final?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And if there is a reason, for all the classes we do this for, we should add a virtual destructor.

class AmqpMessage {
public:
/** @brief Construct a new AMQP Message object. */
AmqpMessage() = default;
Expand Down Expand Up @@ -268,7 +268,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace Models { namespace
* @remarks This class should not be used directly. It is used by the uAMQP interoperability
* layer.
*/
class AmqpMessageFactory final {
class AmqpMessageFactory {
public:
static AmqpMessage FromUamqp(UniqueMessageHandle const& properties);
static AmqpMessage FromUamqp(MESSAGE_INSTANCE_TAG* properties);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace Models {

using UniquePropertiesHandle = Azure::Core::_internal::UniqueHandle<PROPERTIES_INSTANCE_TAG>;

struct MessageProperties final
struct MessageProperties
{
MessageProperties() = default;
~MessageProperties() = default;
Expand Down Expand Up @@ -60,7 +60,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace Models { namespace
* @remarks This class should not be used directly. It is used by the uAMQP interoperability
* layer.
*/
class MessagePropertiesFactory final {
class MessagePropertiesFactory {
public:
static MessageProperties FromUamqp(UniquePropertiesHandle const& properties);
static UniquePropertiesHandle ToUamqp(MessageProperties const& properties);
Expand Down
1 change: 1 addition & 0 deletions sdk/core/azure-core-amqp/inc/azure/core/amqp/session.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ namespace Azure { namespace Core { namespace Amqp { namespace _internal {
SessionOptions const& options = {},
SessionEvents* eventHandler = nullptr);

Session() = default;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Session should not have a default constructor, there is no scenario where a Session object can work without an associated Connection object.

/** @brief Destroys the session object. */
~Session() noexcept;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,22 @@
#include <iostream>
#include <limits>
#include <string>

#include <azure/core/internal/environment.hpp>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use either std::getenv or GetEnvHelper

#define EH_CONNECTION_STRING "<<<Replace with the connection string from your eventhubs instance>>>"

int main()
{
Azure::Core::Amqp::_internal::ConnectionOptions connectionOptions;
/*
* std::string connectionString
= Azure::Core::_internal::Environment::GetVariable("EVENTHUB_CONNECTION_STRING")
+ ";EntityPath=eventhub";
auto credential
= std::make_shared<Azure::Core::Amqp::_internal::ServiceBusSasConnectionStringCredential>(
connectionString);
std::string hostUrl = "amqps://" + credential->GetHostName() + "/" + credential->GetEntityPath()
+ "/ConsumerGroups/$Default/Partitions/1";
*/
Azure::Core::Amqp::_internal::ConnectionOptions connectionOptions;
connectionOptions.ContainerId = "whatever";
connectionOptions.EnableTrace = false;
connectionOptions.SaslCredentials
Expand All @@ -38,11 +48,11 @@ int main()
Azure::Core::Amqp::_internal::MessageReceiver receiver(session, hostUrl, receiverOptions);

// Open the connection to the remote.
receiver.Open();
receiver.Open();

auto timeStart = std::chrono::high_resolution_clock::now();

constexpr int maxMessageReceiveCount = 1000;
constexpr int maxMessageReceiveCount = 10000;

int messageReceiveCount = 0;
while (messageReceiveCount < maxMessageReceiveCount)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

int main()
{
std::string eventhubConnectionString = GetEnvHelper::GetEnv("EVENTHUB_CONNECTION_STRING");
std::string eventhubConnectionString = GetEnvHelper::GetEnv("EVENTHUB_CONNECTION_STRING")+ ";EntityPath=eventhub";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't hard code the eventhubs instance in samples.


auto credential
= std::make_shared<Azure::Core::Amqp::_internal::ServiceBusSasConnectionStringCredential>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
#include <iostream>
#include <limits>
#include <string>
#include <azure/core/internal/environment.hpp>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be needed.


int main()
{
std::string eventhubConnectionString = GetEnvHelper::GetEnv("EVENTHUB_CONNECTION_STRING");
std::string eventhubConnectionString
= GetEnvHelper::GetEnv("EVENTHUB_CONNECTION_STRING") + ";EntityPath=eventhub";


auto credential{
std::make_shared<Azure::Core::Amqp::_internal::ServiceBusSasConnectionStringCredential>(
Expand All @@ -37,10 +40,11 @@ int main()

Azure::Core::Amqp::_internal::Session session(connection, credential, sessionOptions);

constexpr int maxMessageSendCount = 1000;
constexpr int maxMessageSendCount = 5;
Azure::Core::Amqp::Models::AmqpMessage message;
message.SetBody(Azure::Core::Amqp::Models::AmqpBinaryData{'H', 'e', 'l', 'l', 'o'});


Azure::Core::Amqp::_internal::MessageSenderOptions senderOptions;
senderOptions.EnableTrace = true;
senderOptions.Name = "sender-link";
Expand Down
78 changes: 64 additions & 14 deletions sdk/eventhubs/azure-messaging-eventhubs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ if(FETCH_SOURCE_DEPS)
SetCompileOptions(MESSAGING)
endif()


include(AzureVersion)
include(AzureCodeCoverage)
include(AzureTransportAdapters)
Expand All @@ -33,37 +32,86 @@ include(AzureBuildTargetForCI)
# Add create_map_file function
include(CreateMapFile)

if(FETCH_SOURCE_DEPS)
GetFolderList(KEYS)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KEYS??

foreach(oneFolder IN LISTS BUILD_FOLDERS)
message("add folder ${oneFolder}")
add_subdirectory(${oneFolder} EXCLUDE_FROM_ALL)
endforeach()
elseif(NOT AZ_ALL_LIBRARIES)
find_package(azure-core-cpp "1.9.0" CONFIG QUIET)
find_package(azure-storage-blobs-cpp "12.7.0" CONFIG QUIET)
if(NOT azure-core-cpp_FOUND)
find_package(azure-core-cpp "1.9.0" REQUIRED)
find_package(azure-storage-blobs-cpp "12.7.0" REQUIRED)
endif()

@antkmsft antkmsft Jun 13, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
find_package(azure-core-cpp "1.9.0" CONFIG QUIET)
find_package(azure-storage-blobs-cpp "12.7.0" CONFIG QUIET)
if(NOT azure-core-cpp_FOUND)
find_package(azure-core-cpp "1.9.0" REQUIRED)
find_package(azure-storage-blobs-cpp "12.7.0" REQUIRED)
endif()
find_package(azure-core-cpp "1.10.0" CONFIG QUIET)
if(NOT azure-core-cpp_FOUND)
find_package(azure-core-cpp "1.10.0" REQUIRED)
endif()
find_package(azure-core-amqp-cpp CONFIG QUIET)
if(NOT azure-core-amqp-cpp_FOUND)
find_package(azure-core-amqp-cpp REQUIRED)
endif()
find_package(azure-storage-blobs-cpp "12.7.0" CONFIG QUIET)
if(NOT azure-core-cpp_FOUND)
find_package(azure-storage-blobs-cpp "12.7.0" REQUIRED)
endif()

endif()

set(
AZURE_MESSAGING_EVENTHUBS_HEADER
inc/azure/messaging/eventhubs/eventhubs.hpp
inc/azure/messaging/eventhubs.hpp
inc/azure/messaging/eventhubs.hpp
inc/azure/messaging/eventhubs/dll_import_export.hpp
inc/azure/messaging/eventhubs/producer_client.hpp
inc/azure/messaging/eventhubs/event_data_batch.hpp
inc/azure/messaging/eventhubs/retry_operation.hpp
inc/azure/messaging/eventhubs/consumer_client.hpp
inc/azure/messaging/eventhubs/partition_client.hpp
inc/azure/messaging/eventhubs/processor_load_balancer.hpp
inc/azure/messaging/eventhubs/processor_partition_client.hpp
inc/azure/messaging/eventhubs/checkpoint_store.hpp
inc/azure/messaging/eventhubs/rtti.hpp
inc/azure/messaging/eventhubs/processor.hpp
inc/azure/messaging/eventhubs/models/amqp_message.hpp
inc/azure/messaging/eventhubs/models/management_models.hpp
inc/azure/messaging/eventhubs/models/checkpoint_store_models.hpp
inc/azure/messaging/eventhubs/models/consumer_client_models.hpp
inc/azure/messaging/eventhubs/models/event_data_batch_models.hpp
inc/azure/messaging/eventhubs/models/partition_client_models.hpp
inc/azure/messaging/eventhubs/models/processor_models.hpp
inc/azure/messaging/eventhubs/models/processor_load_balancer_models.hpp
inc/azure/messaging/eventhubs/models/producer_client_models.hpp
)

set(
AZURE_MESSAGING_EVENTHUBS_SOURCE
src/eventhubs.cpp
src/private/package_version.hpp
src/private/package_version.hpp
src/producer_client.cpp
src/retry_operation.cpp
src/consumer_client.cpp
src/checkpoint_store.cpp
src/processor_load_balancer.cpp
)
add_library(
azure-messaging-eventhubs
${AZURE_MESSAGING_EVENTHUBS_HEADER}
${AZURE_MESSAGING_EVENTHUBS_SOURCE}
)

target_include_directories(azure-messaging-eventhubs PUBLIC
${AZURE_MESSAGING_EVENTHUBS_HEADER} ${AZURE_MESSAGING_EVENTHUBS_SOURCE}
)
create_per_service_target_build(messaging azure-messaging-eventhubs)
add_library(Azure::azure-messaging-eventhubs ALIAS azure-messaging-eventhubs)

target_include_directories(
azure-messaging-eventhubs
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
$<INSTALL_INTERFACE:include>
)
# Include shared source code
# NOTE: Use shared-code only within .cpp files. DO NEVER consume the shared-code from header files.
target_include_directories(
azure-messaging-eventhubs
PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../azure-messaging-eventhubs/inc>
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Include shared source code
# NOTE: Use shared-code only within .cpp files. DO NEVER consume the shared-code from header files.
target_include_directories(
azure-messaging-eventhubs
PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../azure-messaging-eventhubs/inc>
)


target_link_libraries(azure-messaging-eventhubs PUBLIC Azure::azure-core)
target_link_libraries(azure-messaging-eventhubs PUBLIC Azure::azure-core Azure::azure-core-amqp Azure::azure-storage-blobs)

# coverage. Has no effect if BUILD_CODE_COVERAGE is OFF
create_code_coverage(eventhubs azure-messaging-eventhubs azure-messaging-eventhubs-test "tests?/*;samples?/*")
create_code_coverage(messaging azure-messaging-eventhubs azure-messaging-eventhubs-test "tests?/*;samples?/*")

get_az_version("${CMAKE_CURRENT_SOURCE_DIR}/src/private/package_version.hpp")
generate_documentation(azure-messaging-eventhubs ${AZ_LIBRARY_VERSION})

if(BUILD_TESTING)
add_compile_definitions(TESTING_BUILD_AMQP)
if (NOT AZ_ALL_LIBRARIES OR FETCH_SOURCE_DEPS)
include(AddGoogleTest)
enable_testing ()
Expand All @@ -75,11 +123,13 @@ endif()
az_vcpkg_export(
azure-messaging-eventhubs
MESSAGING_EVENTHUBS
"azure/messaging/eventhubs/dll_import_export.hpp"
azure/messaging/eventhubs/dll_import_export.hpp
)

az_rtti_setup(
azure-messaging-eventhubs
MESSAGING_EVENTHUBS
"azure/messaging/eventhubs/rtti.hpp"
azure/messaging/eventhubs/rtti.hpp
)

unset(FETCH_SOURCE_DEPS CACHE)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
unset(FETCH_SOURCE_DEPS CACHE)
unset(FETCH_SOURCE_DEPS CACHE)

14 changes: 7 additions & 7 deletions sdk/eventhubs/azure-messaging-eventhubs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ pr:
- hotfix/*
paths:
include:
- sdk/eventhubs/azure-messaging-eventhubs
- sdk/eventhubs
- eng/common/testproxy

stages:
- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
- template: ../../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: eventhubs/azure-messaging-eventhubs
ServiceDirectory: eventhubs
CtestRegex: "azure-messaging-eventhubs.*"
LiveTestCtestRegex: "azure-messaging-eventhubs.*"
LiveTestTimeoutInMinutes: 120
Expand All @@ -53,11 +53,11 @@ stages:
- Name: Default
Value: ''
- Name: Test
Value: '-DBUILD_TESTING=ON'
Value: '-DBUILD_TESTING=ON -DENABLE_AZURE_CORE_AMQP=ON'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ENABLE_AZURE_CORE_AMQP should not be needed.

- Name: Samples
Value: '-DBUILD_TESTING=ON -DBUILD_SAMPLES=ON'
Value: '-DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DENABLE_AZURE_CORE_AMQP=ON'
- Name: Performance
Value: '-DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DBUILD_PERFORMANCE_TESTS=ON'
Value: '-DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DBUILD_PERFORMANCE_TESTS=ON -DENABLE_AZURE_CORE_AMQP=ON'
CMakeSourceTestOptions:
- Name: Source
Value: '-DFETCH_SOURCE_DEPS=ON'
Value: '-DFETCH_SOURCE_DEPS=OFF'
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,23 @@
*/

#pragma once

#include "azure/messaging/eventhubs/eventhubs.hpp"
#include "azure/messaging/eventhubs/dll_import_export.hpp"
#include "azure/messaging/eventhubs/models/amqp_message.hpp"
#include "azure/messaging/eventhubs/checkpoint_store.hpp"
#include "azure/messaging/eventhubs/consumer_client.hpp"
#include "azure/messaging/eventhubs/event_data_batch.hpp"
#include "azure/messaging/eventhubs/partition_client.hpp"
#include "azure/messaging/eventhubs/processor_load_balancer.hpp"
#include "azure/messaging/eventhubs/producer_client.hpp"
#include "azure/messaging/eventhubs/retry_operation.hpp"
#include "azure/messaging/eventhubs/rtti.hpp"
#include "azure/messaging/eventhubs/processor.hpp"
#include "azure/messaging/eventhubs/models/amqp_message.hpp"
#include "azure/messaging/eventhubs/models/management_models.hpp"
#include "azure/messaging/eventhubs/models/checkpoint_store_models.hpp"
#include "azure/messaging/eventhubs/models/consumer_client_models.hpp"
#include "azure/messaging/eventhubs/models/event_data_batch_models.hpp"
#include "azure/messaging/eventhubs/models/partition_client_models.hpp"
#include "azure/messaging/eventhubs/models/processor_models.hpp"
#include "azure/messaging/eventhubs/models/processor_load_balancer_models.hpp"
#include "azure/messaging/eventhubs/models/producer_client_models.hpp"
Loading