diff options
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs b/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs index 71e5b69..a3da709 100644 --- a/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs +++ b/OpenSim/Framework/Servers/HttpServer/SynchronousRestObjectRequester.cs | |||
@@ -36,6 +36,15 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
36 | { | 36 | { |
37 | public class SynchronousRestObjectPoster | 37 | public class SynchronousRestObjectPoster |
38 | { | 38 | { |
39 | [Obsolete] | ||
40 | public static TResponse BeginPostObject<TRequest, TResponse>(string verb, string requestUrl, TRequest obj) | ||
41 | { | ||
42 | return SynchronousRestObjectRequester.MakeRequest<TRequest, TResponse>(verb, requestUrl, obj); | ||
43 | } | ||
44 | } | ||
45 | |||
46 | public class SynchronousRestObjectRequester | ||
47 | { | ||
39 | /// <summary> | 48 | /// <summary> |
40 | /// Perform a synchronous REST request. | 49 | /// Perform a synchronous REST request. |
41 | /// </summary> | 50 | /// </summary> |
@@ -46,7 +55,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
46 | /// | 55 | /// |
47 | /// <exception cref="System.Net.WebException">Thrown if we encounter a network issue while posting | 56 | /// <exception cref="System.Net.WebException">Thrown if we encounter a network issue while posting |
48 | /// the request. You'll want to make sure you deal with this as they're not uncommon</exception> | 57 | /// the request. You'll want to make sure you deal with this as they're not uncommon</exception> |
49 | public static TResponse BeginPostObject<TRequest, TResponse>(string verb, string requestUrl, TRequest obj) | 58 | public static TResponse MakeRequest<TRequest, TResponse>(string verb, string requestUrl, TRequest obj) |
50 | { | 59 | { |
51 | Type type = typeof (TRequest); | 60 | Type type = typeof (TRequest); |
52 | 61 | ||