https://pulumi.com logo
Title
e

echoing-dinner-19531

01/17/2023, 7:11 PM
Hey #dotnet folk. We've just released a first look at the custom provider API for dotnet. This will let you write your own resource providers in C# instead of Go. See the blog post at https://www.pulumi.com/blog/dotnet-custom-providers/
w

wet-sunset-4939

01/24/2023, 10:00 AM
Each provider has its own output. How could I use the out put of custom resources from the above sample? Seems it is missing the arguments and output sample.
e

echoing-dinner-19531

01/24/2023, 10:07 AM
You'd need to generate SDKs for the provider, the same as for when writing a Go provider. If you build a provider binary from this SDK and return a schema from the GetSchema method then
pulumi package gen-sdk <provider.exe> --language dotnet
should generate a dotnet sdk.
w

wet-sunset-4939

01/24/2023, 11:26 AM
seems, It is not straightforward to develop a provider with C#. I think I should wait for the end-to-end guideline instead. 🙏 🙏 🙏
Seems, I got confused between Custom Provider and Dynamic Resource Provider. https://www.pulumi.com/docs/intro/concepts/resources/dynamic-providers/ Currently, I have some DRP in TypeScript and would like to convert to C#, However, this feature is not supported in C# yet.
e

echoing-dinner-19531

01/25/2023, 8:27 AM
Currently, I have some DRP in TypeScript and would like to convert to C#, However, this feature is not supported in C# yet.
Yes, we're looking into this. We're also looking at making custom providers easier to use such that you could also just use side by side custom providers with your programs, avoiding the magic of dynamic providers (they have to do function serialisation, which when it works is very cool, and when it doesn't work is a pain to fix)