forked from quixio/quix-streams-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quixio#24: Implement optional constructor parameters for QuixStreamin…
…gClient (quixio#25) 24: Add optional optional constructor overloads - Add WorkspaceId as optional configuration - Add ApiUrl as optional configuration
- Loading branch information
1 parent
7daba8a
commit 5a26e3a
Showing
144 changed files
with
1,565 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...lientAsync.GetRawTopicConsumerAsync(string,string,Nullable_AutoOffsetReset_).md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#### [QuixStreams.Streaming](index.md 'index') | ||
### [QuixStreams.Streaming](QuixStreams.Streaming.md 'QuixStreams.Streaming').[IQuixStreamingClientAsync](IQuixStreamingClientAsync.md 'QuixStreams.Streaming.IQuixStreamingClientAsync') | ||
|
||
## IQuixStreamingClientAsync.GetRawTopicConsumerAsync(string, string, Nullable<AutoOffsetReset>) Method | ||
|
||
Asynchronously gets a topic consumer capable of subscribing to receive non-quixstreams incoming messages. | ||
|
||
```csharp | ||
System.Threading.Tasks.Task<QuixStreams.Streaming.Raw.IRawTopicConsumer> GetRawTopicConsumerAsync(string topicIdOrName, string consumerGroup=null, System.Nullable<QuixStreams.Telemetry.Kafka.AutoOffsetReset> autoOffset=null); | ||
``` | ||
#### Parameters | ||
|
||
<a name='QuixStreams.Streaming.IQuixStreamingClientAsync.GetRawTopicConsumerAsync(string,string,System.Nullable_QuixStreams.Telemetry.Kafka.AutoOffsetReset_).topicIdOrName'></a> | ||
|
||
`topicIdOrName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
Id or name of the topic. If name is provided, workspace will be derived from environment variable or token, in that order | ||
|
||
<a name='QuixStreams.Streaming.IQuixStreamingClientAsync.GetRawTopicConsumerAsync(string,string,System.Nullable_QuixStreams.Telemetry.Kafka.AutoOffsetReset_).consumerGroup'></a> | ||
|
||
`consumerGroup` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
The consumer group id to use for consuming messages. If null, consumer group is not used and only consuming new messages. | ||
|
||
<a name='QuixStreams.Streaming.IQuixStreamingClientAsync.GetRawTopicConsumerAsync(string,string,System.Nullable_QuixStreams.Telemetry.Kafka.AutoOffsetReset_).autoOffset'></a> | ||
|
||
`autoOffset` [System.Nullable<](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')[QuixStreams.Telemetry.Kafka.AutoOffsetReset](https://docs.microsoft.com/en-us/dotnet/api/QuixStreams.Telemetry.Kafka.AutoOffsetReset 'QuixStreams.Telemetry.Kafka.AutoOffsetReset')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1') | ||
|
||
The offset to use when there is no saved offset for the consumer group. | ||
|
||
#### Returns | ||
[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[IRawTopicConsumer](IRawTopicConsumer.md 'QuixStreams.Streaming.Raw.IRawTopicConsumer')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') | ||
A task returning an instance of [IRawTopicConsumer](IRawTopicConsumer.md 'QuixStreams.Streaming.Raw.IRawTopicConsumer') |
21 changes: 21 additions & 0 deletions
21
docs/api-reference/IQuixStreamingClientAsync.GetRawTopicProducerAsync(string).md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#### [QuixStreams.Streaming](index.md 'index') | ||
### [QuixStreams.Streaming](QuixStreams.Streaming.md 'QuixStreams.Streaming').[IQuixStreamingClientAsync](IQuixStreamingClientAsync.md 'QuixStreams.Streaming.IQuixStreamingClientAsync') | ||
|
||
## IQuixStreamingClientAsync.GetRawTopicProducerAsync(string) Method | ||
|
||
Asynchronously gets a topic producer capable of publishing non-quixstreams messages. | ||
|
||
```csharp | ||
System.Threading.Tasks.Task<QuixStreams.Streaming.Raw.IRawTopicProducer> GetRawTopicProducerAsync(string topicIdOrName); | ||
``` | ||
#### Parameters | ||
|
||
<a name='QuixStreams.Streaming.IQuixStreamingClientAsync.GetRawTopicProducerAsync(string).topicIdOrName'></a> | ||
|
||
`topicIdOrName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
Id or name of the topic. If name is provided, workspace will be derived from environment variable or token, in that order | ||
|
||
#### Returns | ||
[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[IRawTopicProducer](IRawTopicProducer.md 'QuixStreams.Streaming.Raw.IRawTopicProducer')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') | ||
A task returning an instance of [IRawTopicProducer](IRawTopicProducer.md 'QuixStreams.Streaming.Raw.IRawTopicProducer') |
39 changes: 39 additions & 0 deletions
39
...ientAsync.GetTopicConsumerAsync(string,string,CommitOptions,AutoOffsetReset).md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#### [QuixStreams.Streaming](index.md 'index') | ||
### [QuixStreams.Streaming](QuixStreams.Streaming.md 'QuixStreams.Streaming').[IQuixStreamingClientAsync](IQuixStreamingClientAsync.md 'QuixStreams.Streaming.IQuixStreamingClientAsync') | ||
|
||
## IQuixStreamingClientAsync.GetTopicConsumerAsync(string, string, CommitOptions, AutoOffsetReset) Method | ||
|
||
Asynchronously gets a topic consumer capable of subscribing to receive incoming streams. | ||
|
||
```csharp | ||
System.Threading.Tasks.Task<QuixStreams.Streaming.ITopicConsumer> GetTopicConsumerAsync(string topicIdOrName, string consumerGroup=null, QuixStreams.Kafka.Transport.CommitOptions options=null, QuixStreams.Telemetry.Kafka.AutoOffsetReset autoOffset=QuixStreams.Telemetry.Kafka.AutoOffsetReset.Latest); | ||
``` | ||
#### Parameters | ||
|
||
<a name='QuixStreams.Streaming.IQuixStreamingClientAsync.GetTopicConsumerAsync(string,string,QuixStreams.Kafka.Transport.CommitOptions,QuixStreams.Telemetry.Kafka.AutoOffsetReset).topicIdOrName'></a> | ||
|
||
`topicIdOrName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
Id or name of the topic. If name is provided, workspace will be derived from environment variable or token, in that order | ||
|
||
<a name='QuixStreams.Streaming.IQuixStreamingClientAsync.GetTopicConsumerAsync(string,string,QuixStreams.Kafka.Transport.CommitOptions,QuixStreams.Telemetry.Kafka.AutoOffsetReset).consumerGroup'></a> | ||
|
||
`consumerGroup` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
The consumer group id to use for consuming messages. If null, consumer group is not used and only consuming new messages. | ||
|
||
<a name='QuixStreams.Streaming.IQuixStreamingClientAsync.GetTopicConsumerAsync(string,string,QuixStreams.Kafka.Transport.CommitOptions,QuixStreams.Telemetry.Kafka.AutoOffsetReset).options'></a> | ||
|
||
`options` [QuixStreams.Kafka.Transport.CommitOptions](https://docs.microsoft.com/en-us/dotnet/api/QuixStreams.Kafka.Transport.CommitOptions 'QuixStreams.Kafka.Transport.CommitOptions') | ||
|
||
The settings to use for committing | ||
|
||
<a name='QuixStreams.Streaming.IQuixStreamingClientAsync.GetTopicConsumerAsync(string,string,QuixStreams.Kafka.Transport.CommitOptions,QuixStreams.Telemetry.Kafka.AutoOffsetReset).autoOffset'></a> | ||
|
||
`autoOffset` [QuixStreams.Telemetry.Kafka.AutoOffsetReset](https://docs.microsoft.com/en-us/dotnet/api/QuixStreams.Telemetry.Kafka.AutoOffsetReset 'QuixStreams.Telemetry.Kafka.AutoOffsetReset') | ||
|
||
The offset to use when there is no saved offset for the consumer group. | ||
|
||
#### Returns | ||
[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[ITopicConsumer](ITopicConsumer.md 'QuixStreams.Streaming.ITopicConsumer')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') | ||
A task returning an instance of [ITopicConsumer](ITopicConsumer.md 'QuixStreams.Streaming.ITopicConsumer') |
21 changes: 21 additions & 0 deletions
21
docs/api-reference/IQuixStreamingClientAsync.GetTopicProducerAsync(string).md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#### [QuixStreams.Streaming](index.md 'index') | ||
### [QuixStreams.Streaming](QuixStreams.Streaming.md 'QuixStreams.Streaming').[IQuixStreamingClientAsync](IQuixStreamingClientAsync.md 'QuixStreams.Streaming.IQuixStreamingClientAsync') | ||
|
||
## IQuixStreamingClientAsync.GetTopicProducerAsync(string) Method | ||
|
||
Asynchronously gets a topic producer capable of publishing stream messages. | ||
|
||
```csharp | ||
System.Threading.Tasks.Task<QuixStreams.Streaming.ITopicProducer> GetTopicProducerAsync(string topicIdOrName); | ||
``` | ||
#### Parameters | ||
|
||
<a name='QuixStreams.Streaming.IQuixStreamingClientAsync.GetTopicProducerAsync(string).topicIdOrName'></a> | ||
|
||
`topicIdOrName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') | ||
|
||
Id or name of the topic. If name is provided, workspace will be derived from environment variable or token, in that order | ||
|
||
#### Returns | ||
[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[ITopicProducer](ITopicProducer.md 'QuixStreams.Streaming.ITopicProducer')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') | ||
A task returning an instance of [ITopicProducer](ITopicProducer.md 'QuixStreams.Streaming.ITopicProducer') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#### [QuixStreams.Streaming](index.md 'index') | ||
### [QuixStreams.Streaming](QuixStreams.Streaming.md 'QuixStreams.Streaming') | ||
|
||
## IQuixStreamingClientAsync Interface | ||
|
||
Represents an asynchronous streaming client for Kafka configured automatically using Environment Variables and Quix platform endpoints. | ||
Use this Client when you use this library together with Quix platform. | ||
|
||
```csharp | ||
public interface IQuixStreamingClientAsync | ||
``` | ||
|
||
Derived | ||
↳ [IQuixStreamingClient](IQuixStreamingClient.md 'QuixStreams.Streaming.IQuixStreamingClient') | ||
↳ [QuixStreamingClient](QuixStreamingClient.md 'QuixStreams.Streaming.QuixStreamingClient') | ||
|
||
| Methods | | | ||
| :--- | :--- | | ||
| [GetRawTopicConsumerAsync(string, string, Nullable<AutoOffsetReset>)](IQuixStreamingClientAsync.GetRawTopicConsumerAsync(string,string,Nullable_AutoOffsetReset_).md 'QuixStreams.Streaming.IQuixStreamingClientAsync.GetRawTopicConsumerAsync(string, string, System.Nullable<QuixStreams.Telemetry.Kafka.AutoOffsetReset>)') | Asynchronously gets a topic consumer capable of subscribing to receive non-quixstreams incoming messages. | | ||
| [GetRawTopicProducerAsync(string)](IQuixStreamingClientAsync.GetRawTopicProducerAsync(string).md 'QuixStreams.Streaming.IQuixStreamingClientAsync.GetRawTopicProducerAsync(string)') | Asynchronously gets a topic producer capable of publishing non-quixstreams messages. | | ||
| [GetTopicConsumerAsync(string, string, CommitOptions, AutoOffsetReset)](IQuixStreamingClientAsync.GetTopicConsumerAsync(string,string,CommitOptions,AutoOffsetReset).md 'QuixStreams.Streaming.IQuixStreamingClientAsync.GetTopicConsumerAsync(string, string, QuixStreams.Kafka.Transport.CommitOptions, QuixStreams.Telemetry.Kafka.AutoOffsetReset)') | Asynchronously gets a topic consumer capable of subscribing to receive incoming streams. | | ||
| [GetTopicProducerAsync(string)](IQuixStreamingClientAsync.GetTopicProducerAsync(string).md 'QuixStreams.Streaming.IQuixStreamingClientAsync.GetTopicProducerAsync(string)') | Asynchronously gets a topic producer capable of publishing stream messages. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#### [QuixStreams.Streaming](index.md 'index') | ||
### [QuixStreams.Streaming.Models.StreamConsumer](QuixStreams.Streaming.Models.StreamConsumer.md 'QuixStreams.Streaming.Models.StreamConsumer').[IStreamEventsConsumer](IStreamEventsConsumer.md 'QuixStreams.Streaming.Models.StreamConsumer.IStreamEventsConsumer') | ||
|
||
## IStreamEventsConsumer.Definitions Property | ||
|
||
Gets the latest set of event definitions | ||
|
||
```csharp | ||
System.Collections.Generic.IList<QuixStreams.Streaming.Models.EventDefinition> Definitions { get; } | ||
``` | ||
|
||
#### Property Value | ||
[System.Collections.Generic.IList<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[EventDefinition](EventDefinition.md 'QuixStreams.Streaming.Models.EventDefinition')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1') |
13 changes: 13 additions & 0 deletions
13
docs/api-reference/IStreamEventsConsumer.OnDataReceived.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#### [QuixStreams.Streaming](index.md 'index') | ||
### [QuixStreams.Streaming.Models.StreamConsumer](QuixStreams.Streaming.Models.StreamConsumer.md 'QuixStreams.Streaming.Models.StreamConsumer').[IStreamEventsConsumer](IStreamEventsConsumer.md 'QuixStreams.Streaming.Models.StreamConsumer.IStreamEventsConsumer') | ||
|
||
## IStreamEventsConsumer.OnDataReceived Event | ||
|
||
Raised when an events data package is received for the stream | ||
|
||
```csharp | ||
event EventHandler<EventDataReadEventArgs> OnDataReceived; | ||
``` | ||
|
||
#### Event Type | ||
[System.EventHandler<](https://docs.microsoft.com/en-us/dotnet/api/System.EventHandler-1 'System.EventHandler`1')[QuixStreams.Streaming.Models.StreamConsumer.EventDataReadEventArgs](https://docs.microsoft.com/en-us/dotnet/api/QuixStreams.Streaming.Models.StreamConsumer.EventDataReadEventArgs 'QuixStreams.Streaming.Models.StreamConsumer.EventDataReadEventArgs')[>](https://docs.microsoft.com/en-us/dotnet/api/System.EventHandler-1 'System.EventHandler`1') |
14 changes: 14 additions & 0 deletions
14
docs/api-reference/IStreamEventsConsumer.OnDefinitionsChanged.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#### [QuixStreams.Streaming](index.md 'index') | ||
### [QuixStreams.Streaming.Models.StreamConsumer](QuixStreams.Streaming.Models.StreamConsumer.md 'QuixStreams.Streaming.Models.StreamConsumer').[IStreamEventsConsumer](IStreamEventsConsumer.md 'QuixStreams.Streaming.Models.StreamConsumer.IStreamEventsConsumer') | ||
|
||
## IStreamEventsConsumer.OnDefinitionsChanged Event | ||
|
||
Raised when the event definitions have changed for the stream. | ||
See [Definitions](StreamEventsConsumer.Definitions.md 'QuixStreams.Streaming.Models.StreamConsumer.StreamEventsConsumer.Definitions') for the latest set of event definitions | ||
|
||
```csharp | ||
event EventHandler<EventDefinitionsChangedEventArgs> OnDefinitionsChanged; | ||
``` | ||
|
||
#### Event Type | ||
[System.EventHandler<](https://docs.microsoft.com/en-us/dotnet/api/System.EventHandler-1 'System.EventHandler`1')[QuixStreams.Streaming.Models.StreamConsumer.EventDefinitionsChangedEventArgs](https://docs.microsoft.com/en-us/dotnet/api/QuixStreams.Streaming.Models.StreamConsumer.EventDefinitionsChangedEventArgs 'QuixStreams.Streaming.Models.StreamConsumer.EventDefinitionsChangedEventArgs')[>](https://docs.microsoft.com/en-us/dotnet/api/System.EventHandler-1 'System.EventHandler`1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#### [QuixStreams.Streaming](index.md 'index') | ||
### [QuixStreams.Streaming.Models.StreamConsumer](QuixStreams.Streaming.Models.StreamConsumer.md 'QuixStreams.Streaming.Models.StreamConsumer') | ||
|
||
## IStreamEventsConsumer Interface | ||
|
||
Interface for consumer of event streams, which raises [EventData](EventData.md 'QuixStreams.Streaming.Models.EventData') and [QuixStreams.Telemetry.Models.EventDefinitions](https://docs.microsoft.com/en-us/dotnet/api/QuixStreams.Telemetry.Models.EventDefinitions 'QuixStreams.Telemetry.Models.EventDefinitions') related messages | ||
|
||
```csharp | ||
public interface IStreamEventsConsumer : | ||
System.IDisposable | ||
``` | ||
|
||
Derived | ||
↳ [StreamEventsConsumer](StreamEventsConsumer.md 'QuixStreams.Streaming.Models.StreamConsumer.StreamEventsConsumer') | ||
|
||
Implements [System.IDisposable](https://docs.microsoft.com/en-us/dotnet/api/System.IDisposable 'System.IDisposable') | ||
| Properties | | | ||
| :--- | :--- | | ||
| [Definitions](IStreamEventsConsumer.Definitions.md 'QuixStreams.Streaming.Models.StreamConsumer.IStreamEventsConsumer.Definitions') | Gets the latest set of event definitions | | ||
|
||
| Events | | | ||
| :--- | :--- | | ||
| [OnDataReceived](IStreamEventsConsumer.OnDataReceived.md 'QuixStreams.Streaming.Models.StreamConsumer.IStreamEventsConsumer.OnDataReceived') | Raised when an events data package is received for the stream | | ||
| [OnDefinitionsChanged](IStreamEventsConsumer.OnDefinitionsChanged.md 'QuixStreams.Streaming.Models.StreamConsumer.IStreamEventsConsumer.OnDefinitionsChanged') | Raised when the event definitions have changed for the stream.<br/>See [Definitions](StreamEventsConsumer.Definitions.md 'QuixStreams.Streaming.Models.StreamConsumer.StreamEventsConsumer.Definitions') for the latest set of event definitions | |
Oops, something went wrong.