//private string _metaSphereVersion; public MetaSphereService(EquipmentConnectionSetting setting, ILogger logger) { var binding = new BasicHttpBinding { MaxBufferSize = Int32.MaxValue, //2147483647 MaxReceivedMessageSize = Int32.MaxValue }; _setting = setting; _sh = new ShClient(binding, new EndpointAddress(_setting.Url)); //_originHost = "ANDP?clientVersion=" + setting.CustomString1; _originHost = setting.CustomString1; _utilities = new MetaSphereShTypedUtilities(); //_metaSphereVersion = setting.CustomString1; _logger = logger; }
public MetaSwitchService(EquipmentConnectionSetting setting, ILogger logger) { var binding = new BasicHttpBinding { MaxBufferSize = Int32.MaxValue,//2147483647 MaxReceivedMessageSize = Int32.MaxValue }; //string url = "http://mvs.sandbox.innovators.metaswitch.com:8087/mvweb/services/ShService"; //string url = "http://eas.sandbox.innovators.metaswitch.com:8086/wsd/services/ShService"; //string url = "http://mvs.sandbox.innovators.metaswitch.com:8087/mvweb/services/ShService"; //const string url = "http://mvs.sandbox.innovators.metaswitch.com:8080/services/ShService"; _setting = setting; _sh = new ShClient(binding, new EndpointAddress(_setting.Url)); _originHost = "ANDP?clientVersion=" + setting.CustomString1; _utilities = new MetaSphereShTypedUtilities(); _metaSwitchVersion = setting.CustomString1; _logger = logger; }