From fb38b52753e7ffbf510a73752f8409d8e2caaa74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=96kvist?= Date: Tue, 17 Mar 2020 11:33:42 +0100 Subject: [PATCH] sample instructions --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 244a8cd..372d2a2 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ in preview](https://www.nuget.org/packages/Microsoft.Azure.EventHubs.ServiceFabr The approch and signature is the same in both cases, it only differs in servicetype, configuration and the option type. -### Sample +### Stateless Sample var pipeline = Composition.Combine( CMP.ServiceFabricReceiver.Common.Features.PartitionLogging(), @@ -39,6 +39,29 @@ The approch and signature is the same in both cases, it only differs in servicet options) ).GetAwaiter().GetResult(); +#### Setup (stateless sample) + +The sample requires that you have an eventhub, a local storage and an application insights instance. + +To run the (stateless1) sample you simple run; + +```sh +dotnet run "eventhubconnectionstring" "applicationinsightsinstrumentationkey" +``` + +*Note* don't forget to start the local storage emulator. + +You could also run this in a local cluster, using the "sample" service fabric project. + +The is also a publisher that sends test events to a event hub. To run the publisher use the following; + +```sh +dotnet run "eventhubconnectionstringwithentitypath" +``` +That will send 1000 test events to the given entity(hub). + +#### Other samples + The samples folder includes a publisher that just pushes test event to a given hub. There is also an service fabric application using the stateful approch.