Ejemplo n.º 1
0
 static void activitySystem_DeviceAdded(object sender, DeviceEventArgs e)
 {
     Console.WriteLine("Device {0} received directly from activitysystem", e.Device.Name);
 }
Ejemplo n.º 2
0
        static void activityClient_DeviceAdded(object sender, DeviceEventArgs e)
        {
            Console.WriteLine("Device {0} received from activityclient over http", e.Device.Name);

            Console.WriteLine("Associated user is {0}",e.Device.Owner.Name);
        }
Ejemplo n.º 3
0
 protected virtual void OnDeviceChanged(DeviceEventArgs e)
 {
     var handler = DeviceChanged;
     if (handler != null) handler(this, e);
 }
Ejemplo n.º 4
0
 void ActivityNode_DeviceAdded( object sender, DeviceEventArgs e )
 {
     devices.AddOrUpdate( e.Device.Id, e.Device, ( key, oldValue ) => e.Device );
 }
Ejemplo n.º 5
0
 void ActivityNode_DeviceChanged( object sender, DeviceEventArgs e )
 {
     devices[ e.Device.Id ].UpdateAllProperties( e.Device );
 }
Ejemplo n.º 6
0
 void ActivitySystem_DeviceAdded(object sender, DeviceEventArgs e)
 {
     Notifier.NotifyAll(NotificationType.DeviceAdded, e.Device);
 }