public WirehomeDictionary DisableComponent(string uid) { if (uid == null) { throw new ArgumentNullException(nameof(uid)); } var result = ProcessComponentMessage(uid, new WirehomeDictionary().WithType(ControlType.Enable)); _messageBusWrapper.PublishDisabledEvent(uid); return(result); }
public IDictionary <object, object> DisableComponent(string uid) { if (uid == null) { throw new ArgumentNullException(nameof(uid)); } var result = ProcessComponentMessage(uid, new Dictionary <object, object> { ["type"] = ControlType.Disable }); _messageBusWrapper.PublishDisabledEvent(uid); return(result); }