Exemplo n.º 1
0
        private static void Dispose(IntPtr info)
        {
            NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info);
            RC4CSP provider;

            NSJSKeyValueCollection.Release(arguments.This, out provider);
        }
Exemplo n.º 2
0
        public static bool RemoveInKeyValueCollection(NSJSObject value)
        {
            if (value == null)
            {
                return(false);
            }
            object result;

            return(NSJSKeyValueCollection.Release(value, out result));
        }
Exemplo n.º 3
0
        private static void Dispose(IntPtr info)
        {
            NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info);
            BaseStream stream;

            NSJSKeyValueCollection.Release(arguments.This, out stream);
            if (stream != null)
            {
                stream.Dispose();
            }
        }
Exemplo n.º 4
0
        private void Dispose(IntPtr info)
        {
            NSJSFunctionCallbackInfo      arguments = NSJSFunctionCallbackInfo.From(info);
            RijndaelCryptoServiceProvider provider;

            NSJSKeyValueCollection.Release <RijndaelCryptoServiceProvider>(arguments.This, out provider);
            if (provider != null)
            {
                provider.Dispose();
            }
        }
Exemplo n.º 5
0
            public static void Close(IntPtr info)
            {
                NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info);
                IDbTransaction           transaction;

                NSJSKeyValueCollection.Release(arguments.This, out transaction);
                if (transaction != null)
                {
                    try
                    {
                        transaction.Dispose();
                    }
                    catch (Exception exception)
                    {
                        Throwable.Exception(arguments.VirtualMachine, exception);
                    }
                }
            }
Exemplo n.º 6
0
        private static void Close(IntPtr info)
        {
            NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info);
            HTTPApplication          application;

            NSJSKeyValueCollection.Release(arguments.This, out application);
            if (application == null)
            {
                arguments.SetReturnValue(false);
            }
            else
            {
                bool success = false;
                try
                {
                    application.Stop();
                    success = true;
                }
                catch (Exception) { /*---------------------------------------------------------*/ }
                arguments.SetReturnValue(success);
            }
        }