コード例 #1
0
 public static IMachineKeyDataProtectionBuilder WithXml(this IMachineKeyDataProtectionBuilder builder, string xml)
 {
     return(builder.WithMachineKeyConfig(new XmlMachineKeyConfig(xml)));
 }
コード例 #2
0
 public static IMachineKeyDataProtectionBuilder WithXml(this IMachineKeyDataProtectionBuilder builder, Stream xmlStream)
 {
     return(builder.WithMachineKeyConfig(new XmlMachineKeyConfig(xmlStream)));
 }
コード例 #3
0
 public static IMachineKeyDataProtectionBuilder WithXmlFile(this IMachineKeyDataProtectionBuilder builder, string xmlPath)
 {
     return(builder.WithMachineKeyConfig(new XmlMachineKeyConfig(new FileInfo(xmlPath))));
 }
コード例 #4
0
 public static IMachineKeyDataProtectionBuilder WithXml(this IMachineKeyDataProtectionBuilder builder, XmlDocument xmlDocument)
 {
     return(builder.WithMachineKeyConfig(new XmlMachineKeyConfig(xmlDocument)));
 }