Пример #1
0
        protected void startTcpRemoting()
        {
            if (_proxy != null)
            {
                return;
            }

            try
            {
                ChannelServices.RegisterChannel(new IpcChannel(), false);
            }
            catch
            {
            }

            _proxy = (IComContainer)Activator.GetObject(typeof(IComContainer),
                                                        "ipc://Peach_Com_Container/PeachComContainer");

            try
            {
                _proxy.Intialize(clsid);
            }
            catch (Exception ex)
            {
                throw new PeachException("Error, ComPublisher was unable to create object.  " + ex.Message, ex);
            }
        }
Пример #2
0
 protected void stopTcpRemoting()
 {
     _proxy = null;
 }