private string baseForwardAddress; // = "http://localhost:1177/"; #endregion /// <summary> /// Create a ServiceNodeCore and initialize its fields. /// </summary> /// <param name="serviceNode">represents the ServiceNode and its settings.</param> public ServiceNodeCore(ServiceNode serviceNode) { this.serviceNode = serviceNode; // Create a new instance of the service implementor. serviceImpl = new DarPoolingService(this); mobileServiceImpl = new DarPoolingServiceMobile(serviceImpl); //serviceImpl.SetMobileHandler = mobileServiceImpl; // Set the delegates removeJoinedUser = new RemoveJoinedUser(serviceImpl.RemoveJoinedUser); string serviceIP = "localhost"; baseHTTPAddress = "http://" + serviceIP + ":1111/"; baseMobileAddress = "http://" + serviceIP + ":1155/"; baseForwardAddress = "http://" + serviceIP + ":1177/"; //Console.WriteLine("Final addresses are:\n {0}\n{1}\n{2}",baseHTTPAddress, baseMobileAddress, baseForwardAddress); InitializeXmlDatabases(); }
/// <summary> /// Create a ServiceNodeCore and initialize its fields. /// </summary> /// <param name="serviceNode">represents the ServiceNode and its settings.</param> public ServiceNodeCore(ServiceNode serviceNode) { this.serviceNode = serviceNode; // Create a new instance of the service implementor. serviceImpl = new DarPoolingService(this); mobileServiceImpl = new DarPoolingServiceMobile(serviceImpl); //serviceImpl.SetMobileHandler = mobileServiceImpl; // Set the delegates removeJoinedUser = new RemoveJoinedUser(serviceImpl.RemoveJoinedUser); string serviceIP = "localhost"; baseHTTPAddress = "http://" + serviceIP + ":1111/"; baseMobileAddress = "http://" + serviceIP + ":1155/"; baseForwardAddress = "http://" + serviceIP + ":1177/"; //Console.WriteLine("Final addresses are:\n {0}\n{1}\n{2}",baseHTTPAddress, baseMobileAddress, baseForwardAddress); InitializeXmlDatabases(); }