/// <summary>
        /// Starts an activity manager service in an bacic http service host
        /// </summary>
        public void StartActivityManager()
        {
            Task.Factory.StartNew(
                   delegate
                   {
                       _host = new GenericHost(7891);
                        _host.HostLaunched += HostHostLaunched;
                        _host.Open(new ActivityManager(_owner, "c:/files/"), typeof (IActivityManager), _device.Name);
                        _host.StartBroadcast(Settings.Default.DISCOVERY_TYPE, _device.Name, _device.TagValue.ToString(), _device.Location);

                    });
        }
Beispiel #2
0
 private void StartActivityManager()
 {
     Task.Factory.StartNew(
         delegate {
         _host = new GenericHost();
         _host.HostLaunched += HostHostLaunched;
         _host.Open(new ActivityManager(_user, "c:/files/"), typeof(IActivityManager), "Tablet manager");
         _host.StartBroadcast(DiscoveryType.WSDiscovery, "Tablet", "205");
     });
 }