public static IMachineKeyDataProtectionBuilder WithXml(this IMachineKeyDataProtectionBuilder builder, string xml) { return(builder.WithMachineKeyConfig(new XmlMachineKeyConfig(xml))); }
public static IMachineKeyDataProtectionBuilder WithXml(this IMachineKeyDataProtectionBuilder builder, Stream xmlStream) { return(builder.WithMachineKeyConfig(new XmlMachineKeyConfig(xmlStream))); }
public static IMachineKeyDataProtectionBuilder WithXmlFile(this IMachineKeyDataProtectionBuilder builder, string xmlPath) { return(builder.WithMachineKeyConfig(new XmlMachineKeyConfig(new FileInfo(xmlPath)))); }
public static IMachineKeyDataProtectionBuilder WithXml(this IMachineKeyDataProtectionBuilder builder, XmlDocument xmlDocument) { return(builder.WithMachineKeyConfig(new XmlMachineKeyConfig(xmlDocument))); }