init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
19
Kreta.WebApi/Naplo/Kreta.Naplo.Infrastrucure/JsonContent.cs
Normal file
19
Kreta.WebApi/Naplo/Kreta.Naplo.Infrastrucure/JsonContent.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System.Net.Http;
|
||||
using System.Text;
|
||||
|
||||
namespace Kreta.Naplo.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// Json content
|
||||
/// </summary>
|
||||
/// <seealso cref="System.Net.Http.StringContent" />
|
||||
public class JsonContent : StringContent
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="JsonContent"/> class.
|
||||
/// </summary>
|
||||
/// <param name="content">Content</param>
|
||||
public JsonContent(string content) : base(content, Encoding.UTF8, Constants.Http.MediaTypeName.ApplicationJson)
|
||||
{ }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue