Ejemplo n.º 1
0
		protected virtual int CreateServer ()
		{
			ChannelManager cm = CreateChannelManager ();
			chs = cm.CreateClientChannel ();
			ChannelServices.RegisterChannel (chs);

			AppDomain domain = AppDomain.CreateDomain ("testdomain");
			server = (CallsDomainServer) domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName,"MonoTests.Remoting.CallsDomainServer");
			remoteUris = server.Start (cm);
			return server.GetDomId ();
		}
Ejemplo n.º 2
0
        protected virtual int CreateServer()
        {
            ChannelManager cm = CreateChannelManager();

            chs = cm.CreateClientChannel();
            ChannelServices.RegisterChannel(chs);

            AppDomain domain = BaseCallTest.CreateDomain("testdomain");

            server     = (CallsDomainServer)domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName, "MonoTests.Remoting.CallsDomainServer");
            remoteUris = server.Start(cm);
            return(server.GetDomId());
        }