Exemplo n.º 1
0
 public void RemoveInterface(InterfaceStatus interfaceStatus)
 {
     // clean up
     interfaceStatus.Subscription?.Unsubscribe(this);
     InterfaceStatuses.Remove(interfaceStatus);
     interfaceStatus.Dispose();
 }
Exemplo n.º 2
0
 private void AddInterfaceIfSupported(HeliosInterface heliosInterface)
 {
     if (InterfaceStatus.TryManage(heliosInterface, out InterfaceStatus interfaceStatus))
     {
         InterfaceStatuses.Add(interfaceStatus);
         interfaceStatus.Subscription?.Subscribe(this);
     }
 }
Exemplo n.º 3
0
 public static bool TryManage(HeliosInterface heliosInterface, out InterfaceStatus managed)
 {
     managed = new InterfaceStatus(heliosInterface);
     return(true);
 }