コード例 #1
0
ファイル: OutputExtensions.cs プロジェクト: zzaoen/pulumi
 /// <summary>
 /// Convert an output containing an array to an output containing the length of the array.
 /// </summary>
 /// <typeparam name="T">The type of elements in the array.</typeparam>
 /// <param name="array">An array wrapped into <see cref="Output{T}"/>.</param>
 /// <returns>An <see cref="Output{T}"/> containing the array length.</returns>
 public static Output <int> Length <T>(this Output <ImmutableArray <T> > array)
 => array.Apply(xs => xs.Length);
コード例 #2
0
ファイル: OutputExtensions.cs プロジェクト: zelfick/pulumi
 public static Output <T1> AsT1 <T0, T1>(this Output <Union <T0, T1> > output) => output.Apply(v => v.AsT1);
コード例 #3
0
ファイル: OutputExtensions.cs プロジェクト: zelfick/pulumi
 public static Output <object> Value <T0, T1>(this Output <Union <T0, T1> > output) => output.Apply(v => v.Value);
コード例 #4
0
ファイル: OutputExtensions.cs プロジェクト: zelfick/pulumi
 public static Output <bool> IsT1 <T0, T1>(this Output <Union <T0, T1> > output) => output.Apply(v => v.IsT1);