Example #1
0
 private async void OnSubscriptionValueChanged(StateValueKey stateValueKey, StateValue value)
 {
     await SendStateValueToSubscribers(stateValueKey, value);
 }
Example #2
0
        public StateValue GetStateValueByKey(string sentinelName, string packageName, string name)
        {
            var stateValueKey = new StateValueKey(sentinelName, packageName, name);

            return(GetStateValueByKey(stateValueKey));
        }
Example #3
0
 public async Task SendStateValueToSubscribers(StateValueKey stateValueKey, StateValue value)
 {
     await _subscriptionsHubContext.Clients.Group(stateValueKey.Key).ValueChanged(stateValueKey, value);
 }
Example #4
0
 public bool Exist(StateValueKey stateValueKey)
 {
     return(_stateValues.ContainsKey(stateValueKey));
 }