This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private sealed class StripThoughtsClientHttpHandler : HttpClientHandler | |
| { | |
| protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, | |
| CancellationToken cancellationToken) | |
| { | |
| var response = await base.SendAsync(request, cancellationToken); | |
| if (response is { IsSuccessStatusCode: true }) | |
| { | |
| string originalContent = await response.Content.ReadAsStringAsync(cancellationToken); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private ConnectionMultiplexer _connection; | |
| void Main() | |
| { | |
| _connection = ConnectionMultiplexer.Connect("localhost"); | |
| var data = GetSessionData(GetKeys()); | |
| data.Dump("Session State"); | |
| } |