private async void OnSubscriptionValueChanged(StateValueKey stateValueKey, StateValue value) { await SendStateValueToSubscribers(stateValueKey, value); }
public StateValue GetStateValueByKey(string sentinelName, string packageName, string name) { var stateValueKey = new StateValueKey(sentinelName, packageName, name); return(GetStateValueByKey(stateValueKey)); }
public async Task SendStateValueToSubscribers(StateValueKey stateValueKey, StateValue value) { await _subscriptionsHubContext.Clients.Group(stateValueKey.Key).ValueChanged(stateValueKey, value); }
public bool Exist(StateValueKey stateValueKey) { return(_stateValues.ContainsKey(stateValueKey)); }