зеркало из https://github.com/dotnet/samples.git
…
|
||
---|---|---|
.. | ||
Common | ||
CustomDataAdapter | ||
Simple | ||
README.md | ||
Secrets.json |
README.md
languages | products | page_type | name | urlFragment | description | |||
---|---|---|---|---|---|---|---|---|
|
|
sample | Orleans Streaming sample apps | orleans-streaming-samples | A collection of Orleans sample apps demonstrating streaming capabilities. |
Orleans Streaming samples
This folder contains two samples demonstrating Orleans Streams.
The first sample, in the Simple
folder, demonstrates pub/sub using Azure Event Hub and an implicit consumer.
The second sample, in the CustomDataAdapter
folder, demonstrates how to configure a custom data adapter so that Orleans can consume stream messages which did not originate from Orleans.
Sample prerequisites
This sample is written in C# and targets .NET 7.0. It requires the .NET 7.0 SDK or later.
Building the sample
To download and run the sample, follow these steps:
- Download and unzip the sample.
- In Visual Studio (2022 or later):
- On the menu bar, choose File > Open > Project/Solution.
- Navigate to the folder that holds the unzipped sample code, and open the C# project (.csproj) file.
- Choose the F5 key to run with debugging, or Ctrl+F5 keys to run the project without debugging.
- From the command line:
- Navigate to the folder that holds the unzipped sample code.
- At the command line, type
dotnet run
.