public ApMaxCore(EquipmentConnectionSetting settings) { var apAdmin = new ApAdminClient("WSHttpBinding_IApAdmin", new EndpointAddress("http://" + settings.Ip + ":" + settings.Port + "/Design_Time_Addresses/LoginService/ApAdmin/")); _loginInformation = apAdmin.LoginAdv(settings.CustomString1, settings.Username, settings.Password); //http://localhost:8731/Design_Time_Addresses/ServiceReportV1/ServiceReport/ _serviceReportV1 = new ServiceReportClient("WSHttpBinding_IServiceReport", new EndpointAddress("http://" + settings.Ip + ":" + settings.Port + "/Design_Time_Addresses/ServiceReportV1/ServiceReport/")); }
public ConnectionManagerService(EquipmentConnectionSetting settings, ILogger logger) { EquipmentConnectionSetting = settings; _logger = logger; switch (settings.ConnectionType) { case ConnectionType.TcpIp: if (settings.Ip == null || settings.Port == null) { throw new ArgumentNullException("For TcpIp connections you must provide a IP and Port."); } _socketClient = new SocketHelper( new SocketConnectionInfo(settings.Ip, (int)settings.Port, settings.IpVersion, ProtocolType.Tcp, settings.Encoding, false, false, false, false), _logger ); break; case ConnectionType.Ssh: if (settings.Ip == null || settings.Port == null) { throw new ArgumentNullException("For SSH connections you must provide a IP and Port."); } AuthenticationMethod method = null; if (settings.AuthenticationType == AuthenticationType.Password) { method = new PasswordAuthenticationMethod(settings.Username, settings.Password); } if (method == null) { throw new ArgumentNullException("settings.AuthenticationType"); } _sshClient = new SshClient(new ConnectionInfo(settings.Ip, (int)settings.Port, settings.Username, new[] { method })); break; case ConnectionType.Telnet: if (settings.ShowTelnetCodes == null || settings.RemoveNonPrintableChars == null || settings.ReplaceNonPrintableChars == null || settings.Port == null) { throw new Exception("For the Telnet Connection you must specify ShowTelnetCodes, RemoveNonPrintableChars, ReplaceNonPrintableChars and Port."); } _socketClient = new SocketHelper( new SocketConnectionInfo(settings.Ip, (int)settings.Port, settings.IpVersion, ProtocolType.Tcp, settings.Encoding, true, (bool)settings.ShowTelnetCodes, (bool)settings.RemoveNonPrintableChars, (bool)settings.ReplaceNonPrintableChars), _logger ); break; } }
public UniversalCallManagementV3(EquipmentConnectionSetting setting) { //http://localhost:8731/Design_Time_Addresses/LoginService/ApAdmin/ var apAdmin = new ApAdminClient("WSHttpBinding_IApAdmin", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/LoginService/ApAdmin/")); //http://localhost:8731/Design_Time_Addresses/UniveralCallManagementV3/UCMService/ _ucmService = new UCMServiceClient("WSHttpBinding_IUCMService", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/UniveralCallManagementV3/UCMService/")); _loginInformation = apAdmin.LoginAdv(setting.CustomString1, setting.Username, setting.Password); }
public CallLoggingV3Service(EquipmentConnectionSetting setting) { //http://localhost:8731/Design_Time_Addresses/LoginService/ApAdmin/ var apAdmin = new ApAdminClient("WSHttpBinding_IApAdmin", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/LoginService/ApAdmin/")); //http://localhost:8731/Design_Time_Addresses/CallLoggingServiceV3/CLPService/ _callLoggingService = new CLPServiceClient("WSHttpBinding_ICLPService", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/CallLoggingServiceV3/CLPService/")); _loginInformation = apAdmin.LoginAdv(setting.CustomString1, setting.Username, setting.Password); }
public OnDemandConferencingV3Service(EquipmentConnectionSetting setting) { //http://localhost:8731/Design_Time_Addresses/LoginService/ApAdmin/ var apAdmin = new ApAdminClient("WSHttpBinding_IApAdmin", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/LoginService/ApAdmin/")); //http://oasislap7:8731/Design_Time_Addresses/OnDemandConferencing/ODConferencingServiceV3/ _odConferencingService = new ODConferencingServiceClient("WSHttpBinding_IODConferencingService", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/OnDemandConferencing/ODConferencingServiceV3/")); _loginInformation = apAdmin.LoginAdv(setting.CustomString1, setting.Username, setting.Password); }
public TerminatingCallManagementV3Service(EquipmentConnectionSetting setting) { //http://localhost:8731/Design_Time_Addresses/LoginService/ApAdmin/ var apAdmin = new ApAdminClient("WSHttpBinding_IApAdmin", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/LoginService/ApAdmin/")); //http://oasislap7:8731/Design_Time_Addresses/TerminatingCallManagementV3/TCMServiceV3/ _tcmService = new TCMServiceClient("WSHttpBinding_ITCMService", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/TerminatingCallManagementV3/TCMServiceV3/")); _loginInformation = apAdmin.LoginAdv(setting.CustomString1, setting.Username, setting.Password); }
public PannawayService(Guid tenantId, EquipmentConnectionSetting setting, ILogger logger) { _url = setting.Url; _userName = setting.Username; _password = setting.Password; _logger = logger; _tenantId = tenantId.ToString(); _logger.WriteLogEntry(_tenantId, new List <object> { _url }, "PannawayService URL:", LogLevelType.Info); }
public LargeScaleConferenceV1Service(EquipmentConnectionSetting setting) { _setting = setting; //http://localhost:8731/Design_Time_Addresses/LoginService/ApAdmin/ var apAdmin = new ApAdminClient("WSHttpBinding_IApAdmin", new EndpointAddress("http://" + _setting.Ip + ":" + _setting.Port + "/Design_Time_Addresses/LoginService/ApAdmin/")); //http://localhost:8731/Design_Time_Addresses/LargeScaleConferenceV1/LargeScaleConference/ _largeScaleConferenceClient = new LargeScaleConferenceClient("WSHttpBinding_ILargeScaleConference", new EndpointAddress("http://" + _setting.Ip + ":" + _setting.Port + "/Design_Time_Addresses/LargeScaleConferenceV1/LargeScaleConference/")); _loginInformation = apAdmin.LoginAdv(_setting.CustomString1, _setting.Username, _setting.Password); }
public SubscriberV3Service(EquipmentConnectionSetting setting, ServiceVersions serviceVersions) { _setting = setting; _versions = serviceVersions; //http://localhost:8731/Design_Time_Addresses/LoginService/ApAdmin/ var admin = new ApAdminClient("WSHttpBinding_IApAdmin", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/LoginService/ApAdmin/")); //http://localhost:8731/Design_Time_Addresses/SubscriberServiceV3/SubscriberV3/ _subscriberService = new SubscriberServiceClient("WSHttpBinding_ISubscriberService3", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/SubscriberServiceV3/SubscriberV3/")); _loginInformation = admin.LoginAdv(setting.CustomString1, setting.Username, setting.Password); }
//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; }
public void TestInitialize() { var equipmentConnectionSetting = new EquipmentConnectionSetting { CustomInt1 = null, CustomString1 = "9056", EquipmentId = 6, Ip = "127.0.0.1", Password = "******", Port = 8731, Url = null, Username = "******" }; var serviceVersions = new ServiceVersions { Subscriber = 4 }; _subscriberV4Service = new SubscriberV4Service(equipmentConnectionSetting, serviceVersions); }