From 5a6bca0896b7ec6fb8a285386af2ab9ff50d2ff4 Mon Sep 17 00:00:00 2001 From: Albie Date: Wed, 8 Sep 2021 18:44:24 +0100 Subject: [PATCH] add depreciation notice --- DragonFruit.Common.Data/Utils/SerializerUtils.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DragonFruit.Common.Data/Utils/SerializerUtils.cs b/DragonFruit.Common.Data/Utils/SerializerUtils.cs index f24e896..b211c12 100644 --- a/DragonFruit.Common.Data/Utils/SerializerUtils.cs +++ b/DragonFruit.Common.Data/Utils/SerializerUtils.cs @@ -1,6 +1,7 @@ // DragonFruit.Common Copyright 2021 DragonFruit Network // Licensed under the MIT License. Please refer to the LICENSE file at the root of this project for details +using System; using System.IO; using System.Net.Http; using System.Net.Http.Headers; @@ -10,6 +11,7 @@ namespace DragonFruit.Common.Data.Utils { public static class SerializerUtils { + [Obsolete("Now available as ApiSerializer.GetHttpContent(stream). This will be removed in the future")] public static HttpContent ProcessStream(ISerializer serializer, Stream stream) { stream.Seek(0, SeekOrigin.Begin);