예제 #1
0
            public HResult SetHost(INiIsolationHost host)
            {
                try
                {
                    Debug.Assert(_host == host);

                    if (_page != null)
                    {
                        return(_page.SetHost(host));
                    }

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
예제 #2
0
        public HResult SetHost(INiIsolationHost host)
        {
            try
            {
                if (host == null)
                {
                    throw new ArgumentNullException("host");
                }

                _host = host;

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
예제 #3
0
파일: PageHost.cs 프로젝트: netide/netide
            public HResult SetHost(INiIsolationHost host)
            {
                try
                {
                    Debug.Assert(_host == host);

                    if (_page != null)
                        return _page.SetHost(host);

                    return HResult.OK;
                }
                catch (Exception ex)
                {
                    return ErrorUtil.GetHResult(ex);
                }
            }
예제 #4
0
        public HResult SetHost(INiIsolationHost host)
        {
            try
            {
                if (host == null)
                    throw new ArgumentNullException("host");

                _host = host;

                return HResult.OK;
            }
            catch (Exception ex)
            {
                return ErrorUtil.GetHResult(ex);
            }
        }