Beispiel #1
0
        string IRemoteDispatch.RemoteDispatchAutoDone(string s)
        {
            bool   failed = false;
            string str    = this.RemoteDispatchHelper(s, out failed);

            if (failed)
            {
                ContextUtil.SetAbort();
            }
            return(str);
        }
Beispiel #2
0
        // helper to dispatch an autodone method on a remote object
        String IRemoteDispatch.RemoteDispatchAutoDone(String s)
        {
            bool failed = false;

            DBG.Info(DBG.SC, "SC: RemoteDispatch - AutoDone");
            String r = RemoteDispatchHelper(s, out failed);

            if (failed)
            {
                ContextUtil.SetAbort();
            }
            return(r);
        }
        public void UninstallAssemblyFromConfig([MarshalAs(UnmanagedType.IUnknown)] ref RegistrationConfig regConfig, object sync)
        {
            bool flag = false;

            try
            {
                new RegistrationDriver().UninstallAssembly(regConfig, sync);
                ContextUtil.SetComplete();
                flag = true;
            }
            finally
            {
                if (!flag)
                {
                    ContextUtil.SetAbort();
                }
            }
        }
Beispiel #4
0
        // Install an assembly given configuration information.
        public void InstallAssemblyFromConfig
            (ref RegistrationConfig regConfig, Object sync)
        {
            RegistrationHelper helper;
            bool complete = false;

            try
            {
                helper = new RegistrationHelper();
                helper.InstallAssemblyFromConfig(ref regConfig);
                ContextUtil.SetComplete();
                complete = true;
            }
            finally
            {
                if (!complete)
                {
                    ContextUtil.SetAbort();
                }
            }
        }
Beispiel #5
0
        /// <include file='doc\RegistrationWrappers.uex' path='docs/doc[@for="RegistrationHelperTx.UninstallAssemblyFromConfig"]/*' />
        public void UninstallAssemblyFromConfig([MarshalAs(UnmanagedType.IUnknown)] ref RegistrationConfig regConfig, Object sync)
        {
            bool succeed = false;

            try
            {
                DBG.Assert(ContextUtil.IsInTransaction,
                           "Running in transactional helper w/o transaction will deadlock!");
                RegistrationDriver helper = new RegistrationDriver();
                helper.UninstallAssembly(regConfig, sync);
                ContextUtil.SetComplete();
                succeed = true;
            }
            finally
            {
                if (!succeed)
                {
                    DBG.Info(DBG.Registration, "Uninstall failed.");
                    ContextUtil.SetAbort();
                }
            }
        }