Update with review comments
This commit is contained in:
Родитель
5f1396d3da
Коммит
2a392413b9
|
@ -8,13 +8,13 @@ The format of the connection string is:
|
|||
|
||||
##Exposed API
|
||||
|
||||
```C
|
||||
```c
|
||||
extern MAP_HANDLE connectionstringparser_parse(STRING_HANDLE connection_string);
|
||||
```
|
||||
|
||||
###connectionstringparser_parse
|
||||
|
||||
```C
|
||||
```c
|
||||
extern MAP_HANDLE connectionstringparser_parse(STRING_HANDLE connection_string);
|
||||
```
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ EventData Class in .Net [http://msdn.microsoft.com/en-us/library/microsoft.servi
|
|||
|
||||
##Exposed API
|
||||
|
||||
```C
|
||||
```c
|
||||
#define EVENTDATA_RESULT_VALUES \
|
||||
EVENTDATA_OK, \
|
||||
EVENTDATA_INVALID_ARG, \
|
||||
|
@ -33,7 +33,7 @@ extern MAP_HANDLE EventData_Properties(EVENTDATA_HANDLE eventDataHandle);
|
|||
|
||||
###EventData_CreateWithNewMemory
|
||||
|
||||
```C
|
||||
```c
|
||||
extern EVENTDATA_HANDLE EventData_CreateWithNewMemory(const unsigned char* data, size_t length);
|
||||
```
|
||||
|
||||
|
@ -44,7 +44,7 @@ extern EVENTDATA_HANDLE EventData_CreateWithNewMemory(const unsigned char* data,
|
|||
|
||||
###EventData_GetData
|
||||
|
||||
```C
|
||||
```c
|
||||
extern EVENTDATA_RESULT EventData_GetData(EVENTDATA_HANDLE eventDataHandle, const unsigned char** buffer, size_t* size);
|
||||
```
|
||||
|
||||
|
@ -56,7 +56,7 @@ extern EVENTDATA_RESULT EventData_GetData(EVENTDATA_HANDLE eventDataHandle, cons
|
|||
|
||||
###EventData_Clone
|
||||
|
||||
```C
|
||||
```c
|
||||
extern EVENTDATA_HANDLE EventData_Clone(EVENTDATA_HANDLE eventDataHandle);
|
||||
```
|
||||
|
||||
|
@ -68,7 +68,7 @@ extern EVENTDATA_HANDLE EventData_Clone(EVENTDATA_HANDLE eventDataHandle);
|
|||
|
||||
###EventData_Destroy
|
||||
|
||||
```C
|
||||
```c
|
||||
extern void EventData_Destroy(EVENTDATA_HANDLE eventDataHandle);
|
||||
```
|
||||
|
||||
|
@ -77,7 +77,7 @@ extern void EventData_Destroy(EVENTDATA_HANDLE eventDataHandle);
|
|||
|
||||
###EventData_GetPartitionKey
|
||||
|
||||
```C
|
||||
```c
|
||||
extern const char* EventData_GetPartitionKey(EVENTDATA_HANDLE eventDataHandle);
|
||||
```
|
||||
|
||||
|
@ -87,7 +87,7 @@ extern const char* EventData_GetPartitionKey(EVENTDATA_HANDLE eventDataHandle);
|
|||
|
||||
###EventData_SetPartitionKey
|
||||
|
||||
```C
|
||||
```c
|
||||
extern EVENTDATA_RESULT EventData_SetPartitionKey(EVENTDATA_HANDLE eventDataHandle, const char* partitionKey);
|
||||
```
|
||||
|
||||
|
@ -99,7 +99,7 @@ extern EVENTDATA_RESULT EventData_SetPartitionKey(EVENTDATA_HANDLE eventDataHand
|
|||
|
||||
###EventData_Properties
|
||||
|
||||
```C
|
||||
```c
|
||||
extern MAP_HANDLE EventData_Properties(EVENTDATA_HANDLE eventDataHandle);
|
||||
```
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ EventHubClient Class for .net [http://msdn.microsoft.com/en-us/library/microsoft
|
|||
|
||||
##Exposed API
|
||||
|
||||
```C
|
||||
```c
|
||||
#define EVENTHUBCLIENT_RESULT_VALUES \
|
||||
EVENTHUBCLIENT_OK, \
|
||||
EVENTHUBCLIENT_INVALID_ARG, \
|
||||
|
@ -48,7 +48,7 @@ extern void EventHubClient_LL_Destroy(EVENTHUBCLIENT_LL_HANDLE eventHubClientLLH
|
|||
|
||||
###EventHubClient_LL_CreateFromConnectionString
|
||||
|
||||
```C
|
||||
```c
|
||||
extern EVENTHUBCLIENT_LL_HANDLE EventHubClient_LL_CreateFromConnectionString(const char* connectionString, const char* eventHubPath);
|
||||
```
|
||||
**SRS_EVENTHUBCLIENT_LL_03_002: \[**EventHubClient_LL_CreateFromConnectionString shall allocate a new event hub client LL instance.**\]**
|
||||
|
@ -70,7 +70,7 @@ Endpoint=sb://[namespace].servicebus.windows.net;SharedAccessKeyName=[keyname];S
|
|||
|
||||
###EventHubClient_LL_SendAsync
|
||||
|
||||
```C
|
||||
```c
|
||||
extern EVENTHUBCLIENT_RESULT EventHubClient_LL_SendAsync(EVENTHUBCLIENT_LL_HANDLE eventHubClientLLHandle , EVENTDATA_HANDLE eventDataHandle, EVENTHUB_CLIENT_SENDASYNC_CONFIRMATION_CALLBACK sendAsyncConfirmationCallback, void* userContextCallback);
|
||||
```
|
||||
|
||||
|
@ -82,7 +82,7 @@ extern EVENTHUBCLIENT_RESULT EventHubClient_LL_SendAsync(EVENTHUBCLIENT_LL_HANDL
|
|||
|
||||
###EventHubClient_LL_SendBatchAsync
|
||||
|
||||
```C
|
||||
```c
|
||||
extern EVENTHUBCLIENT_RESULT EventHubClient_LL_SendBatchAsync(EVENTHUBCLIENT_LL_HANDLE eventHubClientLLHandle, EVENTDATA_HANDLE* eventDataList, size_t count, EVENTHUB_CLIENT_SENDASYNC_CONFIRMATION_CALLBACK sendAsyncConfirmationCallback, void* userContextCallback);
|
||||
```
|
||||
|
||||
|
@ -96,7 +96,7 @@ extern EVENTHUBCLIENT_RESULT EventHubClient_LL_SendBatchAsync(EVENTHUBCLIENT_LL_
|
|||
|
||||
###EventHubClient_LL_DoWork
|
||||
|
||||
```C
|
||||
```c
|
||||
extern void EventHubClient_LL_DoWork(EVENTHUBCLIENT_LL_HANDLE eventHubClientLLHandle);
|
||||
```
|
||||
|
||||
|
@ -177,7 +177,7 @@ For each message that is pending:
|
|||
|
||||
###EventHubClient_LL_Destroy
|
||||
|
||||
```C
|
||||
```c
|
||||
extern void EventHubClient_LL_Destroy(EVENTHUBCLIENT_LL_HANDLE eventHubClientLLHandle);
|
||||
```
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ EventHubClient Class for .net [http://msdn.microsoft.com/en-us/library/microsoft
|
|||
|
||||
##Exposed API
|
||||
|
||||
```C
|
||||
```c
|
||||
typedef void* EVENTHUBCLIENT_HANDLE;
|
||||
|
||||
extern const char* EventHubClient_GetVersionString(void);
|
||||
|
@ -26,7 +26,7 @@ extern void EventHubClient_Destroy(EVENTHUBCLIENT_HANDLE eventHubHandle);
|
|||
|
||||
###EventHubClient_GetVersionString
|
||||
|
||||
```C
|
||||
```c
|
||||
extern const char* EventHubClient_GetVersionString(void);
|
||||
```
|
||||
|
||||
|
@ -34,7 +34,7 @@ extern const char* EventHubClient_GetVersionString(void);
|
|||
|
||||
###EventHubClient_CreateFromConnectionString
|
||||
|
||||
```C
|
||||
```c
|
||||
extern EVENTHUBCLIENT_HANDLE EventHubClient_CreateFromConnectionString(const char* connectionString, const char* eventHubPath);
|
||||
```
|
||||
|
||||
|
@ -45,7 +45,7 @@ extern EVENTHUBCLIENT_HANDLE EventHubClient_CreateFromConnectionString(const cha
|
|||
|
||||
###Execute_LowerLayerSendAsync
|
||||
|
||||
```C
|
||||
```c
|
||||
extern int Execute_LowerLayerSendAsync(EVENTHUBCLIENT_STRUCT* eventHubClientInfo, EVENTDATA_HANDLE eventDataHandle, EVENTDATA_CLIENT_SENDASYNC_CONFIRMATION_CALLBACK notificiationCallback, void* userContextCallback);
|
||||
```
|
||||
|
||||
|
@ -58,7 +58,7 @@ extern int Execute_LowerLayerSendAsync(EVENTHUBCLIENT_STRUCT* eventHubClientInfo
|
|||
|
||||
###Execute_LowerLayerSendBatchAsync
|
||||
|
||||
```C
|
||||
```c
|
||||
extern int Execute_LowerLayerSendAsync(EVENTHUBCLIENT_STRUCT* eventHubClientInfo, EVENTDATA_HANDLE* eventDataList, size_t count, EVENTDATA_CLIENT_SENDASYNC_CONFIRMATION_CALLBACK sendAsyncCallback, void* userContextCallback);
|
||||
```
|
||||
|
||||
|
@ -71,7 +71,7 @@ extern int Execute_LowerLayerSendAsync(EVENTHUBCLIENT_STRUCT* eventHubClientInfo
|
|||
**SRS_EVENTHUBCLIENT_07_049: \[**If the EventHubClient_LL_SendAsync call fails then Execute_LowerLayerSendAsync shall return a nonzero value.**\]**
|
||||
|
||||
###Create_DoWorkThreadIfNeccesary
|
||||
```C
|
||||
```c
|
||||
extern int Create_DoWorkThreadIfNeccesary (EVENTHUBCLIENT_STRUCT* eventHubClientInfo);
|
||||
```
|
||||
|
||||
|
@ -80,7 +80,7 @@ extern int Create_DoWorkThreadIfNeccesary (EVENTHUBCLIENT_STRUCT* eventHubClient
|
|||
**SRS_EVENTHUBCLIENT_07_035: \[**Create_DoWorkThreadIfNeccesary shall return a nonzero value if any failure is encountered.**\]**
|
||||
|
||||
###EventHubClient_Send
|
||||
```C
|
||||
```c
|
||||
extern EVENTHUBCLIENT_RESULT EventHubClient_Send(EVENTHUBCLIENT_HANDLE eventHubHandle, EVENTDATA_HANDLE eventDataHandle);
|
||||
```
|
||||
|
||||
|
@ -93,7 +93,7 @@ EventHubClient_Send shall call into EventHubClient_LL_SendAsync to send content
|
|||
**SRS_EVENTHUBCLIENT_03_013: \[**EventHubClient_Send shall return EVENTHUBCLIENT_OK upon successful completion of the Execute_LowerLayerSendAsync and the callback function.**\]**
|
||||
|
||||
###EventHubClient_SendAsync
|
||||
```C
|
||||
```c
|
||||
extern EVENTHUBCLIENT_RESULT EventHubClient_SendAsync(EVENTHUBCLIENT_HANDLE eventHubHandle, EVENTDATA_HANDLE eventDataHandle, EVENTDATA_CLIENT_SENDASYNC_CONFIRMATION_CALLBACK sendAsyncCallback, void* userContextCallback);
|
||||
```
|
||||
**SRS_EVENTHUBCLIENT_03_021: \[**EventHubClient_SendAsync shall return EVENTHUBCLIENT_INVALID_ARG if eventHubHandle or eventDataHandle is NULL.**\]**
|
||||
|
@ -101,7 +101,7 @@ extern EVENTHUBCLIENT_RESULT EventHubClient_SendAsync(EVENTHUBCLIENT_HANDLE even
|
|||
**SRS_EVENTHUBCLIENT_07_037: \[**On Success EventHubClient_SendAsync shall return EVENTHUBCLIENT_OK.**\]**
|
||||
|
||||
###EventHubClient_SendBatch
|
||||
```C
|
||||
```c
|
||||
extern EVENTHUBCLIENT_RESULT EventHubClient_SendBatch(EVENTHUBCLIENT_HANDLE eventHubHandle, EVENTDATA_HANDLE* eventDataList);
|
||||
```
|
||||
|
||||
|
@ -113,7 +113,7 @@ EventHubClient_SendBatch shall call into EventHubClient_LL_SendBatchAsync to sen
|
|||
**SRS_EVENTHUBCLIENT_07_054: \[**EventHubClient_SendBatch shall return EVENTHUBCLIENT_OK upon successful completion of the Execute_LowerLayerSendBatchAsync and the callback function.**\]**
|
||||
|
||||
###EventHubClient_SendBatchAsync
|
||||
```C
|
||||
```c
|
||||
extern EVENTHUBCLIENT_RESULT EventHubClient_SendBatchAsync(EVENTHUBCLIENT_HANDLE eventHubHandle, EVENTDATA_HANDLE* eventDataList, size_t count, EVENTDATA_CLIENT_SENDASYNC_CONFIRMATION_CALLBACK sendAsyncCallback, void* userContextCallback);
|
||||
```
|
||||
|
||||
|
@ -122,7 +122,7 @@ extern EVENTHUBCLIENT_RESULT EventHubClient_SendBatchAsync(EVENTHUBCLIENT_HANDLE
|
|||
**SRS_EVENTHUBCLIENT_07_042: \[**On Success EventHubClient_SendBatchAsync shall return EVENTHUBCLIENT_OK.**\]**
|
||||
|
||||
###EventHubClient_Destroy
|
||||
```C
|
||||
```c
|
||||
extern void EventHubClient_Destroy(EVENTHUBCLIENT_HANDLE eventHubHandle);
|
||||
```
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче