public Form1() { InitializeComponent(); var objsink = new BikeAvailabilityServiceCallbackSink(this); var iCntxt = new InstanceContext(objsink); subscriberClient = new SubscriberServiceClient(iCntxt); subscribedStations.Clear(); }
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); }