private void Initialize()
        {
            ChannelRegistrationHelper.RegisterChannel(ManagerFactory.Port);

            RemotingConfiguration.RegisterWellKnownServiceType(typeof(ManagerFactory),
                                                               ManagerFactory.ServiceName,
                                                               WellKnownObjectMode.SingleCall);
        }
        private void RegisterChannel()
        {
            //
            // Create a back-channel for the event callbacks from the service.
            //

            if (ChannelServices.GetChannel(ChannelRegistrationHelper.c_ChannelName) == null)
            {
                string port = "backchannel_" + Guid.NewGuid().ToString("N");

                ChannelRegistrationHelper.RegisterChannel(port);
            }
        }