예제 #1
0
파일: Form1.cs 프로젝트: candy06/socws1
        public Form1()
        {
            InitializeComponent();
            var objsink = new BikeAvailabilityServiceCallbackSink(this);
            var iCntxt  = new InstanceContext(objsink);

            subscriberClient = new SubscriberServiceClient(iCntxt);
            subscribedStations.Clear();
        }
예제 #2
0
        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);
        }