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

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