Example #1
0
        public static bool Close(NSJSValue request)
        {
            NSJSObject o = request as NSJSObject;

            if (o == null)
            {
                return(false);
            }
            ObjectAuxiliary.RemoveInKeyValueCollection(o.Get("InputStream") as NSJSObject);
            NSJSArray files = o.Get("Files") as NSJSArray;

            if (files != null)
            {
                foreach (NSJSValue value in files)
                {
                    if (value == null)
                    {
                        continue;
                    }
                    NSJSObject posedfile = value as NSJSObject;
                    if (posedfile == null)
                    {
                        continue;
                    }
                    ObjectAuxiliary.RemoveInKeyValueCollection(o.Get("InputStream") as NSJSObject);
                }
            }
            return(ObjectAuxiliary.RemoveInKeyValueCollection(request as NSJSObject));
        }
Example #2
0
 private static void Close(IntPtr info)
 {
     ObjectAuxiliary.Call <WebSocket>(info, (websocket, arguments) =>
     {
         websocket.Close();
         arguments.SetReturnValue(ObjectAuxiliary.RemoveInKeyValueCollection(arguments.This));
     });
 }
Example #3
0
 private static void Close(IntPtr info)
 {
     ObjectAuxiliary.Call <WebSocketListener>(info, (server, arguments) =>
     {
         server.Stop();
         ObjectAuxiliary.RemoveInKeyValueCollection(arguments.This);
     });
 }
Example #4
0
            private static void Close(IntPtr info)
            {
                NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info);
                NSJSObject self = arguments.This;

                ObjectAuxiliary.RemoveInKeyValueCollection(self);
                HttpRequest.Close(self.Get("Request"));
                HttpResponse.Close(self.Get("Response") as NSJSObject);
            }
Example #5
0
 public static void Close(NSJSFunctionCallbackInfo arguments)
 {
     arguments.SetReturnValue(ObjectAuxiliary.RemoveInKeyValueCollection(arguments.This));
 }
Example #6
0
        private static void Close(IntPtr info)
        {
            NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info);

            arguments.SetReturnValue(ObjectAuxiliary.RemoveInKeyValueCollection(arguments.This));
        }
Example #7
0
 public static bool Close(NSJSObject response)
 {
     return(ObjectAuxiliary.RemoveInKeyValueCollection(response));
 }