Beispiel #1
0
	public static int Main (string[] args) {
		channel = new TcpChannel (0);
		ChannelServices.RegisterChannel (channel);

		//RemotingConfiguration.RegisterWellKnownServiceType (typeof (MBInstallClient),
		//						    "MBuild.InstallerService", 
		//						    WellKnownObjectMode.Singleton);

		notify = (IInstallerServiceNotify) Activator.GetObject (typeof (IInstallerServiceNotify),
									"tcp://localhost:9414/MBuild.InstallerServiceNotify");

		singleton = new MBInstallClient ();
		notify.NotifyInstallerService (singleton);

		while (keep_going)
			System.Threading.Thread.Sleep (100);

		return 0;
	}
Beispiel #2
0
    public static int Main(string[] args)
    {
        channel = new TcpChannel(0);
        ChannelServices.RegisterChannel(channel);

        //RemotingConfiguration.RegisterWellKnownServiceType (typeof (MBInstallClient),
        //						    "MBuild.InstallerService",
        //						    WellKnownObjectMode.Singleton);

        notify = (IInstallerServiceNotify)Activator.GetObject(typeof(IInstallerServiceNotify),
                                                              "tcp://localhost:9414/MBuild.InstallerServiceNotify");

        singleton = new MBInstallClient();
        notify.NotifyInstallerService(singleton);

        while (keep_going)
        {
            System.Threading.Thread.Sleep(100);
        }

        return(0);
    }