From a983f2a3ac02f02d184d0024411c92a43ebf1dd3 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 10 May 2009 16:31:10 +0000 Subject: [PATCH] Create SynchronousRestObjectRequester and make SynchronousRestObjectPoster use that. Mark SynchronousRestObjectPoster.BeginPostObject as obsolete. --- .../HttpServer/SynchronousRestObjectRequester.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs b/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs index 71e5b69a1a..a3da70972f 100644 --- a/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs +++ b/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs @@ -35,6 +35,15 @@ using System.Xml.Serialization; namespace OpenSim.Framework.Servers.HttpServer { public class SynchronousRestObjectPoster + { + [Obsolete] + public static TResponse BeginPostObject(string verb, string requestUrl, TRequest obj) + { + return SynchronousRestObjectRequester.MakeRequest(verb, requestUrl, obj); + } + } + + public class SynchronousRestObjectRequester { /// /// Perform a synchronous REST request. @@ -46,7 +55,7 @@ namespace OpenSim.Framework.Servers.HttpServer /// /// Thrown if we encounter a network issue while posting /// the request. You'll want to make sure you deal with this as they're not uncommon - public static TResponse BeginPostObject(string verb, string requestUrl, TRequest obj) + public static TResponse MakeRequest(string verb, string requestUrl, TRequest obj) { Type type = typeof (TRequest);