diff options
author | Melanie Thielker | 2009-05-10 16:31:10 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-05-10 16:31:10 +0000 |
commit | a983f2a3ac02f02d184d0024411c92a43ebf1dd3 (patch) | |
tree | 9d40cb298549367d3375b3c47f49baa4eda73f36 /OpenSim/Framework/Servers | |
parent | Create an async form of the RestObjectPoster. Rename the file (but not the (diff) | |
download | opensim-SC_OLD-a983f2a3ac02f02d184d0024411c92a43ebf1dd3.zip opensim-SC_OLD-a983f2a3ac02f02d184d0024411c92a43ebf1dd3.tar.gz opensim-SC_OLD-a983f2a3ac02f02d184d0024411c92a43ebf1dd3.tar.bz2 opensim-SC_OLD-a983f2a3ac02f02d184d0024411c92a43ebf1dd3.tar.xz |
Create SynchronousRestObjectRequester and make SynchronousRestObjectPoster
use that. Mark SynchronousRestObjectPoster.BeginPostObject as obsolete.
Diffstat (limited to 'OpenSim/Framework/Servers')
-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 | ||