コード例 #1
0
 /// <summary>
 /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
 /// /> and <see cref="ignoreCase" />
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <param name="formatProvider">not used by this TypeConverter.</param>
 /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
 /// <returns>
 /// an instance of <see cref="NetworkPlugin" />, or <c>null</c> if there is no suitable conversion.
 /// </returns>
 public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => NetworkPlugin.CreateFrom(sourceValue);
 /// <summary>
 /// Specifies the network plugin type to be used for building the Kubernetes network.
 /// </summary>
 /// <param name="networkPlugin">The network plugin type to be used for building the Kubernetes network.</param>
 /// <return>The next stage of the definition.</return>
 KubernetesCluster.Definition.IWithAttach <KubernetesCluster.Definition.IWithCreate> KubernetesCluster.Definition.IBlank <KubernetesCluster.Definition.IWithCreate> .WithNetworkPlugin(NetworkPlugin networkPlugin)
 {
     return(this.WithNetworkPlugin(networkPlugin));
 }
コード例 #3
0
 ///GENMHASH:C0DA13E58FA4E2F8A3C3295799D02961:FC96BA989471A87E3EF4B25DD25DA242
 public KubernetesClusterNetworkProfileImpl WithNetworkPlugin(NetworkPlugin networkPlugin)
 {
     this.EnsureNetworkProfile().NetworkPlugin = networkPlugin;
     return(this);
 }
コード例 #4
0
 private static void ResetRecorderNetworkPlugin()
 {
     NetworkPlugin.SetToDefault();
 }