7 instantiations of ComponentSubscriptionKey
Microsoft.AspNetCore.Components (7)
CascadingParameterValueProvider.cs (3)
27
var subscriptionKey = new
ComponentSubscriptionKey
((ComponentState)key!, parameterInfo.PropertyName);
37
var key = new
ComponentSubscriptionKey
(subscriber, parameterInfo.PropertyName);
43
var key = new
ComponentSubscriptionKey
(subscriber, parameterInfo.PropertyName);
PersistentState\PersistentStateValueProvider.cs (4)
33
if (_subscriptions.TryGetValue(
new
(componentState, parameterInfo.PropertyName), out var subscription))
52
_subscriptions.Add(new
ComponentSubscriptionKey
(subscriber, propertyName), componentSubscription);
57
if (_subscriptions.TryGetValue(
new
(subscriber, parameterInfo.PropertyName), out var subscription))
60
_subscriptions.Remove(
new
(subscriber, parameterInfo.PropertyName));
9 references to ComponentSubscriptionKey
Microsoft.AspNetCore.Components (9)
CascadingParameterValueProvider.cs (4)
12
private readonly Dictionary<
ComponentSubscriptionKey
, CascadingParameterSubscription> _subscriptions = new();
27
var
subscriptionKey = new ComponentSubscriptionKey((ComponentState)key!, parameterInfo.PropertyName);
37
var
key = new ComponentSubscriptionKey(subscriber, parameterInfo.PropertyName);
43
var
key = new ComponentSubscriptionKey(subscriber, parameterInfo.PropertyName);
ComponentSubscriptionKey.cs (3)
10
internal readonly struct ComponentSubscriptionKey(ComponentState subscriber, string propertyName) : IEquatable<
ComponentSubscriptionKey
>
16
public bool Equals(
ComponentSubscriptionKey
other)
20
=> obj is
ComponentSubscriptionKey
other && Equals(other);
PersistentState\PersistentStateValueProvider.cs (2)
12
private readonly Dictionary<
ComponentSubscriptionKey
, PersistentValueProviderComponentSubscription> _subscriptions = [];
16
internal Dictionary<
ComponentSubscriptionKey
, PersistentValueProviderComponentSubscription> Subscriptions => _subscriptions;