Implemented interface member:
method
Peek
Microsoft.AspNetCore.Components.ITempData.Peek(System.String)
13 references to Peek
Microsoft.AspNetCore.Components.Endpoints (2)
TempData\TempData.cs (2)
144return ContainsKey(item.Key) && Equals(Peek(item.Key), item.Value); 154if (ContainsKey(item.Key) && Equals(Peek(item.Key), item.Value))
Microsoft.AspNetCore.Components.Endpoints.Tests (11)
TempData\TempDataCascadingValueSupplierTest.cs (8)
53Assert.Equal("persisted value", tempData.Peek("key")); 65Assert.Null(tempData.Peek("key")); 78Assert.Equal("value1", tempData.Peek("key1")); 79Assert.Equal("value2", tempData.Peek("key2")); 80Assert.Equal("value3", tempData.Peek("key3")); 92Assert.Null(tempData.Peek("key1")); 93Assert.Equal("value2", tempData.Peek("key2")); 123Assert.Null(tempData.Peek("key"));
TempData\TempDataTest.cs (3)
48var value = tempData.Peek("Key1"); 58var value = tempData.Peek("NonExistent"); 245_ = tempData.Peek("Key");