Beispiel #1
0
 public void AddClient(FiresecService.Service.FiresecService firesecService)
 {
     Dispatcher.BeginInvoke(new Action(
     delegate()
     {
         var endpointAddress = new EndpointAddress(new Uri(firesecService.ClientCredentials.ClientCallbackAddress));
         var port = endpointAddress.Uri.Port;
         var connectionViewModel = new ClientViewModel()
         {
             FiresecService = firesecService,
             UID = firesecService.UID,
             UserName = firesecService.ClientCredentials.UserName,
             ClientType = firesecService.ClientCredentials.ClientType,
             IpAddress = firesecService.ClientIpAddressAndPort,
             CallbackPort = port,
             ConnectionDate = DateTime.Now
         };
         Clients.Add(connectionViewModel);
     }
     ));
 }
Beispiel #2
0
 public CallbackWrapper(FiresecService firesecService)
 {
     FiresecService = firesecService;
 }