4 instantiations of EncodedKey
Microsoft.AspNetCore.Session (4)
DistributedSession.cs (4)
135
return _store.TryGetValue(new
EncodedKey
(key), out value);
145
var encodedKey = new
EncodedKey
(key);
167
_isModified |= _store.Remove(new
EncodedKey
(key));
348
var key = new
EncodedKey
(ReadBytes(content, keyLength));
23 references to EncodedKey
Microsoft.AspNetCore.Session (23)
DefaultDistributedSessionStore.cs (7)
11
private readonly Dictionary<
EncodedKey
, byte[]> _store = new Dictionary<
EncodedKey
, byte[]>();
15
public ICollection<
EncodedKey
> Keys => _store.Keys;
17
public bool TryGetValue(
EncodedKey
key, [MaybeNullWhen(false)] out byte[] value)
20
public void SetValue(
EncodedKey
key, byte[] value) => _store[key] = value;
22
public bool Remove(
EncodedKey
encodedKey)
28
public IEnumerator<KeyValuePair<
EncodedKey
, byte[]>> GetEnumerator()
DistributedSession.cs (2)
145
var
encodedKey = new EncodedKey(key);
348
var
key = new EncodedKey(ReadBytes(content, keyLength));
EncodedKey.cs (2)
42
var
otherKey = obj as
EncodedKey
;
IDistributedSessionStore.cs (5)
8
internal interface IDistributedSessionStore : IEnumerable<KeyValuePair<
EncodedKey
, byte[]>>
12
ICollection<
EncodedKey
> Keys { get; }
14
bool TryGetValue(
EncodedKey
key, [MaybeNullWhen(false)] out byte[] value);
16
void SetValue(
EncodedKey
key, byte[] value);
18
bool Remove(
EncodedKey
encodedKey);
NoOpSessionStore.cs (7)
12
public void SetValue(
EncodedKey
key, byte[] value)
20
public ICollection<
EncodedKey
> Keys { get; } = Array.Empty<
EncodedKey
>();
26
public IEnumerator<KeyValuePair<
EncodedKey
, byte[]>> GetEnumerator() => Enumerable.Empty<KeyValuePair<
EncodedKey
, byte[]>>().GetEnumerator();
28
public bool Remove(
EncodedKey
key) => false;
30
public bool TryGetValue(
EncodedKey
key, [MaybeNullWhen(false)] out byte[] value)