feat(csharp): add examples for C# SDK#2178
Conversation
|
Left one comment, but LGTM! 😺 |
|
And yes, please remove old example projects from |
135454d to
5a6f379
Compare
|
Rebased and partially fixed CI, not sure how we want to include examples within |
|
@sobczal2, for including the c# examples in this flow you just have to add it to examples suite in components.yml: |
|
Hopefully fixed CI issues and added examples to restore, build, lint. Refactored some steps to pass just sln/csproj directory instead of using |
hubcio
left a comment
There was a problem hiding this comment.
overall great job! if possible, please fix these lints
|
Just to add: for now, please ignore failing |
|
|
|
@sobczal2 recently, we had to introduce a change in which iggy doesn't create root user (iggy) with default password (iggy), but some randomized password. due to that, if you are starting locally iggy-server via docker i suggest to add if you are starting iggy via binary, you can just call -f, --fresh
Remove system path before starting (WARNING: THIS WILL DELETE ALL DATA!)
This flag will completely remove the system data directory (local_data by default)
before starting the server. Use this for clean development setups or testing.
Examples:
iggy-server --fresh # Start with fresh data directory
iggy-server -f # Short form
--with-default-root-credentials
Use default root credentials (INSECURE - FOR DEVELOPMENT ONLY!)
When this flag is set, the root user will be created with username 'iggy'
and password 'iggy' if it doesn't exist. If the root user already exists,
this flag has no effect and a warning will be printed.
This flag is equivalent to setting IGGY_ROOT_USERNAME=iggy and IGGY_ROOT_PASSWORD=iggy,
but environment variables take precedence over this flag.
WARNING: This is insecure and should only be used for development and testing!
Examples:
iggy-server --with-default-root-credentials # Use 'iggy/iggy' as root credentialsi rebased your PR, let's see if CI will work |
|
Have you already joined our discord? |
Yes :) |
|
Thank you, such examples will be very useful for C# devs :) |


Closes #1891
Summary
This PR adds 4 usage examples, script for running them and updates CI to include that script.
Details
All examples try to mirror existing rust examples. This was possible for:
Skipped examples are:
IggyProducertype is not present in C# SDK, so I wasn't able to mirror it, this example is possible with some changes, but I think it is better to do it in a seperate PR, this one is already bigShould
foreign/csharp/Iggy_Sample_Consumerandforeign/csharp/Iggy_Sample_Producerbe removed in this PR?