Skip to content

Commit c31b6e9

Browse files
Prepare eventhubs for beta (Azure#2085)
* Added 'send' verb to eventhubs; publish types from eventhubs crate * Added example for writing events * Added a couple more samples; moved models into a separate module * Refactored receiving messages * Added timeout receiving events * Refactored examples in readme documentation * Renamed message_receiver to event_receiver * Simplify use of timeout function * Limit receive_lots_of_events to 10 seconds of runtime, clarified a couple of properties * Defer calculating eventdata properties in ReceiveEventData until they are consumed. * Distinguish AMQP message from EH event * Renamed batch create events to batch produce events to be consistent with naming * PR feedback * Analysis fixes --------- Co-authored-by: Copilot <[email protected]>
1 parent 676fbfb commit c31b6e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1824
-1101
lines changed

.vscode/cspell.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,21 @@
7777
"path": "../eng/dict/rust-custom.txt",
7878
"noSuggest": true
7979
},
80+
{
81+
"name": "azure_core_amqp",
82+
"path": "../sdk/core/azure_core_amqp/.dict.txt",
83+
"noSuggest": true
84+
},
8085
{
8186
"name": "cosmos",
8287
"path": "../sdk/cosmos/.dict.txt",
8388
"noSuggest": true
8489
},
90+
{
91+
"name": "eventhubs",
92+
"path": "../sdk/eventhubs/.dict.txt",
93+
"noSuggest": true
94+
},
8595
{
8696
"name": "identity",
8797
"path": "../sdk/identity/.dict.txt",
@@ -123,6 +133,22 @@
123133
"rust-custom"
124134
]
125135
},
136+
{
137+
"filename": "sdk/core/azure_core_amqp/**",
138+
"dictionaries": [
139+
"crates",
140+
"rust-custom",
141+
"azure_core_amqp"
142+
]
143+
},
144+
{
145+
"filename": "sdk/eventhubs/**",
146+
"dictionaries": [
147+
"crates",
148+
"rust-custom",
149+
"eventhubs"
150+
]
151+
},
126152
{
127153
"filename": "sdk/identity/**",
128154
"dictionaries": [
@@ -163,4 +189,4 @@
163189
]
164190
}
165191
]
166-
}
192+
}

sdk/core/azure_core_amqp/.dict.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mgmt
2+
sasl
3+
sastoken
4+
smallulong
5+
smalluint

sdk/core/azure_core_amqp/src/cbs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All Rights reserved
22
// Licensed under the MIT license.
3-
// cspell: words amqp sasl sastoken
43

54
use azure_core::error::Result;
65

sdk/core/azure_core_amqp/src/connection.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All Rights reserved
22
// Licensed under the MIT license.
3-
// cspell: words amqp sasl
43

54
use super::value::{AmqpOrderedMap, AmqpSymbol, AmqpValue};
65
use azure_core::{error::Result, Url};

sdk/core/azure_core_amqp/src/error.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All Rights reserved
22
// Licensed under the MIT license.
3-
// cspell: words amqp
43

54
pub enum ErrorKind {
65
AmqpReceiverAlreadyAttached,

sdk/core/azure_core_amqp/src/fe2o3/connection.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All Rights reserved
22
// Licensed under the MIT license.
3-
// cspell: words amqp sasl
43

54
use crate::connection::{AmqpConnectionApis, AmqpConnectionOptions};
65
use crate::value::{AmqpOrderedMap, AmqpSymbol, AmqpValue};

sdk/core/azure_core_amqp/src/fe2o3/error.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All Rights reserved
22
// Licensed under the MIT license.
3-
// cspell: words thiserror amqp
43

54
macro_rules! impl_from_external_error {
65
($(($amqp_error:ident, $foreign_error:ty)),*) => {

sdk/core/azure_core_amqp/src/fe2o3/management.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All Rights reserved
22
// Licensed under the MIT license.
3-
// cspell: words amqp servicebus eventhub mgmt
43

54
use std::borrow::BorrowMut;
65

sdk/core/azure_core_amqp/src/fe2o3/messaging/message_fields.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All Rights reserved
22
// Licensed under the MIT license.
3-
// cspell: words amqp servicebus eventhub mgmt
43

54
use crate::{
65
messaging::{

sdk/core/azure_core_amqp/src/fe2o3/messaging/message_source.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All Rights reserved
22
// Licensed under the MIT license.
3-
// cspell: words amqp servicebus eventhub mgmt
43

54
use fe2o3_amqp_types::definitions::Fields;
65

0 commit comments

Comments
 (0)