using System; using System.Data; using System.Configuration; using System.Collections; using System.Collections.Generic; using System.Web; using System.Web.Security; using System.Web.SessionState; using WmData; namespace WmDataTesterWeb { public class Global : System.Web.HttpApplication { protected string username1 = "datatest"; protected string password1 = "datatest"; protected string hostname1 = "localhost"; protected int portnumber1 = 3306; protected string catalog1 = "datatest"; protected string username2 = "datatest2"; protected string password2 = "datatest2"; protected string hostname2 = "localhost"; protected int portnumber2 = 3306; protected string catalog2 = "datatest2"; protected string dataLinkKey = "geheimesleutel"; protected void Application_Start(object sender, EventArgs e) { string server1 = "http://localhost:9500/datalink1/"; string server2 = "http://localhost:9500/datalink2/"; List dataLinkServers = new List(); dataLinkServers.Add(server1); dataLinkServers.Add(server2); List syncObjectTypes = new List(); syncObjectTypes.Add(typeof(TestObject)); WmDataIntermediar.Data1 = new WmData.WmDirectData(username1, password1, hostname1, portnumber1, catalog1, server1, dataLinkServers,60,syncObjectTypes); // WmDataIntermediar.Data1.DataLink.changeCurrentRole(WmDataLinkRole.DISABLED); System.Threading.Thread.Sleep(1000); WmDataIntermediar.Data2 = new WmData.WmDirectData(username2, password2, hostname2, portnumber2, catalog2, server2, dataLinkServers, 60, syncObjectTypes); // WmDataIntermediar.Data2.DataLink.changeCurrentRole(WmDataLinkRole.DISABLED); System.Diagnostics.Trace.WriteLine("WmDataTesterWeb: Started"); // WmDataIntermediar.DirectData1 = new WmData.WmDirectData(username1, password1, hostname1, portnumber1, catalog1,false); } protected void Application_End(object sender, EventArgs e) { } } }