Author: ilya
Date: 2005-06-19 05:23:22 -0400 (Sun, 19 Jun 2005)
New Revision: 46206
Added:
trunk/mcs/class/System.Web/System.Web/GhHttpAsyncResult.jvm.cs
Log:
Added: trunk/mcs/class/System.Web/System.Web/GhHttpAsyncResult.jvm.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/GhHttpAsyncResult.jvm.cs
2005-06-19 09:19:18 UTC (rev 46205)
+++ trunk/mcs/class/System.Web/System.Web/GhHttpAsyncResult.jvm.cs
2005-06-19 09:23:22 UTC (rev 46206)
@@ -0,0 +1,73 @@
+//
+// System.Web.HttpAsyncResult
+//
+// Author:
+// Patrik Torstensson ([EMAIL PROTECTED])
+//
+using System;
+using System.Threading;
+
+namespace System.Web
+{
+ internal class GhHttpAsyncResult : IAsyncResult
+ {
+ private object _result;
+ private object _asyncState;
+ private AsyncCallback _callback;
+ private Exception _error;
+
+ private bool _ready;
+ private bool _readySync;
+
+ internal GhHttpAsyncResult(AsyncCallback callback, object
state) {
+ _callback = callback;
+ _asyncState = state;
+ }
+
+ internal void Complete(bool sync, object result, Exception
error) {
+ _ready = true;
+ _readySync = sync;
+ _result = result;
+ _error = error;
+ if (null != _callback) {
+ _callback(this);
+ }
+ }
+
+ internal Exception Error {
+ get {
+ return null;
+ }
+ }
+
+ public object AsyncState {
+ get {
+ return _asyncState;
+ }
+ }
+
+ public object AsyncObject {
+ get {
+ return null;
+ }
+ }
+
+ public WaitHandle AsyncWaitHandle {
+ get {
+ return null;
+ }
+ }
+
+ public bool CompletedSynchronously {
+ get {
+ return _readySync;
+ }
+ }
+
+ public bool IsCompleted {
+ get {
+ return _ready;
+ }
+ }
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches