protected void Application_Start(object sender, EventArgs e) { // Code that runs on application startup try { IDictionary props = new Hashtable(); Belikov.GenuineChannels.GenuineTcp.GenuineTcpChannel channel = new Belikov.GenuineChannels.GenuineTcp.GenuineTcpChannel(props, null, null); System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(channel, false); homeSeerApp = (Scheduler.hsapplication)Activator.GetObject(typeof(Scheduler.hsapplication), "gtcp://localhost:8737/hs_server.rem"); } catch { } }
public static void Register(Scheduler.clsHSPI obj) { m_callback = obj; m_Instance = (Scheduler.hsapplication)m_callback.GetHSIface(); }