pulumi/sdk/dotnet/Pulumi
Fraser Waters c4cd7214d1
Add Union.Bimap and some more InputUnion conversions (#8733)
Resolves https://github.com/pulumi/pulumi/issues/8753

This adds conversion operators so that you can cast a `Union<T0,T1>` or
`Output<Union<T0,T1>>` to an `InputUnion<T0,T1>`. Without this
conversions it wasn't possible to create an `InputUnion` with a union
value, you could only give it a `T0` or `T1` (or an output of them).

This also adds `Union.Bimap` to easily convert both sides of the union,
it was possible to write this with match but Bimap is slightly nicer:
```
union.Match<Union<TResult0, TResult1>>(t0 => mapFunc0(t0), t1 => mapFunc1(t1)))

union.Bimap(mapFunc0, mapFunc1)
```
2022-01-14 14:57:10 +00:00
..
Core Add Union.Bimap and some more InputUnion conversions (#8733) 2022-01-14 14:57:10 +00:00
Deployment [sdk/dotnet] add plugin download url (#8739) 2022-01-13 16:10:17 -08:00
Exceptions Fix 7422 - NullPointerException race on Urn property in C# SDK (#8495) 2021-12-10 11:22:42 -05:00
Resources [sdk/dotnet] add plugin download url (#8739) 2022-01-13 16:10:17 -08:00
Serialization Don't crash on null inputs for value types in IOutputCompletionSource.SetValue(OutputData<object?> data) (#8628) 2021-12-23 10:54:48 +00:00
Testing [sdk/dotnet] Support for calling methods (#7582) 2021-08-24 20:17:05 -07:00
AssemblyAttributes.cs [Automation API] - C# Implementation (#5761) 2021-02-18 11:36:21 +01:00
Config.cs [dotnet] Fix Resharper code issues (#7178) 2021-06-10 10:32:33 -04:00
Config_Exceptions.cs [dotnet] Fix Resharper code issues (#7178) 2021-06-10 10:32:33 -04:00
Extensions.cs [dotnet] Fix Resharper code issues (#7178) 2021-06-10 10:32:33 -04:00
Log.cs Fix docstring on node log.error and other SDK equivalents (#6573) 2021-03-18 13:57:10 -04:00
PublicAPI.Shipped.txt Add Union.Bimap and some more InputUnion conversions (#8733) 2022-01-14 14:57:10 +00:00
PublicAPI.Unshipped.txt Verify collection initializers (#8582) 2021-12-20 10:41:04 -05:00
Pulumi.csproj Support microsoft logging extensions with inline programs (#7117) 2021-06-10 23:06:57 -04:00
Stack.cs Fix 7422 - NullPointerException race on Urn property in C# SDK (#8495) 2021-12-10 11:22:42 -05:00