コード例 #1
0
ファイル: RC4.cs プロジェクト: liulilittle/nsjs
        private static void Dispose(IntPtr info)
        {
            NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info);
            RC4CSP provider;

            NSJSKeyValueCollection.Release(arguments.This, out provider);
        }
コード例 #2
0
ファイル: ObjectAuxiliary.cs プロジェクト: liulilittle/nsjs
        public static bool RemoveInKeyValueCollection(NSJSObject value)
        {
            if (value == null)
            {
                return(false);
            }
            object result;

            return(NSJSKeyValueCollection.Release(value, out result));
        }
コード例 #3
0
ファイル: Stream.cs プロジェクト: liulilittle/nsjs
        private static void Dispose(IntPtr info)
        {
            NSJSFunctionCallbackInfo arguments = NSJSFunctionCallbackInfo.From(info);
            BaseStream stream;

            NSJSKeyValueCollection.Release(arguments.This, out stream);
            if (stream != null)
            {
                stream.Dispose();
            }
        }
コード例 #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();
            }
        }
コード例 #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);
                    }
                }
            }
コード例 #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);
            }
        }