Skip to content

Commit

Permalink
update to Flurl 4
Browse files Browse the repository at this point in the history
  • Loading branch information
renanaragao committed Dec 16, 2023
1 parent d64d091 commit 9126bee
Show file tree
Hide file tree
Showing 28 changed files with 504 additions and 448 deletions.
44 changes: 0 additions & 44 deletions Flurl.Http.Xml.sln

This file was deleted.

40 changes: 40 additions & 0 deletions FlurlX.Http.Xml.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34330.188
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F2114366-0322-434F-91D3-A25939F0CFA7}"
ProjectSection(SolutionItems) = preProject
.gitattributes = .gitattributes
.gitignore = .gitignore
appveyor.yml = appveyor.yml
global.json = global.json
README.md = README.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlurlX.Http.Xml.Tests", "test\FlurlX.Http.Xml.Tests\FlurlX.Http.Xml.Tests.csproj", "{C01421A9-2746-4319-A96B-BEB21E6C349F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlurlX.Http.Xml", "src\FlurlX.Http.Xml\FlurlX.Http.Xml.csproj", "{A9B5243D-9BB9-4F70-BF1F-A3716A5AF4CD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C01421A9-2746-4319-A96B-BEB21E6C349F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C01421A9-2746-4319-A96B-BEB21E6C349F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C01421A9-2746-4319-A96B-BEB21E6C349F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C01421A9-2746-4319-A96B-BEB21E6C349F}.Release|Any CPU.Build.0 = Release|Any CPU
{A9B5243D-9BB9-4F70-BF1F-A3716A5AF4CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A9B5243D-9BB9-4F70-BF1F-A3716A5AF4CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A9B5243D-9BB9-4F70-BF1F-A3716A5AF4CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A9B5243D-9BB9-4F70-BF1F-A3716A5AF4CD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7B202065-8A02-433F-93A2-248DC8ABB65B}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"projects": [ "src", "test" ],
"sdk": {
"version": "3.1.202",
"version": "8.0.100",
"rollForward": "latestFeature"
}
}
37 changes: 0 additions & 37 deletions src/Flurl.Http.Xml/FlurlHttpSettingsExtensions.cs

This file was deleted.

87 changes: 0 additions & 87 deletions src/Flurl.Http.Xml/MicrosoftXmlSerializer.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Flurl.Http.Content;

namespace Flurl.Http.Xml
namespace FlurlX.Http.Xml
{
/// <summary>
/// Provides HTTP content based on a serialized XML object, with the XML string captured to a property
Expand Down
23 changes: 23 additions & 0 deletions src/FlurlX.Http.Xml/FlurlHttpSettingsExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Text;
using System.Xml;

namespace FlurlX.Http.Xml
{
/// <summary>
/// FlurlHttpSettingsExtensions
/// </summary>
public static class FlurlHttpSettingsExtensions
{
private static XmlWriterSettings s_xmlWriterSettings = new XmlWriterSettings { Encoding = new UTF8Encoding(false, false), Indent = true, OmitXmlDeclaration = false };
private static readonly Lazy<MicrosoftXmlSerializer> s_xmlSerializerInstance = new Lazy<MicrosoftXmlSerializer>(() => new MicrosoftXmlSerializer(s_xmlWriterSettings));

/// <summary>
/// XMLs the serializer.
/// </summary>
public static MicrosoftXmlSerializer XmlSerializer()
{
return s_xmlSerializerInstance.Value;
}
}
}
Loading

0 comments on commit 9126bee

Please sign in to comment.