2 instantiations of CircuitId
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitIdFactory.cs (2)
46
return new
CircuitId
(Base64UrlTextEncoder.Encode(secret), Base64UrlTextEncoder.Encode(id));
77
circuitId = new
CircuitId
(text, Base64UrlTextEncoder.Encode(id));
60 references to CircuitId
Microsoft.AspNetCore.Components.Server (53)
CircuitDisconnectMiddleware.cs (5)
52
private async Task<
CircuitId
?> GetCircuitIdAsync(HttpContext context)
67
if (!CircuitIdFactory.TryParseCircuitId(text, out
var
circuitId))
81
private async Task TerminateCircuitGracefully(
CircuitId
circuitId)
92
public static partial void CircuitTerminatingGracefully(ILogger logger,
CircuitId
circuitId);
95
public static partial void CircuitTerminatedGracefully(ILogger logger,
CircuitId
circuitId);
Circuits\CircuitHost.cs (20)
41
CircuitId
circuitId,
87
public
CircuitId
CircuitId { get; }
883
public static partial void DisposeStarted(ILogger logger,
CircuitId
circuitId);
886
public static partial void DisposeSucceeded(ILogger logger,
CircuitId
circuitId);
889
public static partial void DisposeFailed(ILogger logger,
CircuitId
circuitId, Exception exception);
892
public static partial void CircuitOpened(ILogger logger,
CircuitId
circuitId);
895
public static partial void ConnectionUp(ILogger logger,
CircuitId
circuitId, string connectionId);
898
public static partial void ConnectionDown(ILogger logger,
CircuitId
circuitId, string connectionId);
901
public static partial void CircuitClosed(ILogger logger,
CircuitId
circuitId);
926
public static partial void CircuitUnhandledException(ILogger logger,
CircuitId
circuitId, Exception exception);
929
public static partial void CircuitTransmittingClientError(ILogger logger,
CircuitId
circuitId);
932
public static partial void CircuitTransmittedClientErrorSuccess(ILogger logger,
CircuitId
circuitId);
935
public static partial void CircuitTransmitErrorFailed(ILogger logger,
CircuitId
circuitId, Exception exception);
938
public static partial void UnhandledExceptionClientDisconnected(ILogger logger,
CircuitId
circuitId, Exception exception);
965
public static partial void LocationChange(ILogger logger, string uri,
CircuitId
circuitId);
968
public static partial void LocationChangeSucceeded(ILogger logger, string uri,
CircuitId
circuitId);
971
public static partial void LocationChangeFailed(ILogger logger, string uri,
CircuitId
circuitId, Exception exception);
974
public static partial void LocationChanging(ILogger logger, string uri,
CircuitId
circuitId);
977
public static partial void OnRenderCompletedFailed(ILogger logger, long renderId,
CircuitId
circuitId, Exception e);
1022
public static partial void LocationChangeFailedInCircuit(ILogger logger, string uri,
CircuitId
circuitId, Exception exception);
Circuits\CircuitId.cs (3)
18
internal readonly struct CircuitId : IEquatable<
CircuitId
>
30
public bool Equals(
CircuitId
other)
48
return obj is
CircuitId
other ? Equals(other) : false;
Circuits\CircuitIdFactory.cs (2)
32
public
CircuitId
CreateCircuitId()
49
public bool TryParseCircuitId(string? text, out
CircuitId
circuitId)
Circuits\CircuitRegistry.cs (19)
54
ConnectedCircuits = new ConcurrentDictionary<
CircuitId
, CircuitHost>();
67
internal ConcurrentDictionary<
CircuitId
, CircuitHost> ConnectedCircuits { get; }
113
var
circuitId = circuitHost.CircuitId;
169
public virtual async Task<CircuitHost> ConnectAsync(
CircuitId
circuitId, IClientProxy clientProxy, string connectionId, CancellationToken cancellationToken)
228
protected virtual (CircuitHost circuitHost, bool previouslyConnected) ConnectCore(
CircuitId
circuitId, IClientProxy clientProxy, string connectionId)
309
public ValueTask TerminateAsync(
CircuitId
circuitId)
379
public static partial void CircuitConnectStarted(ILogger logger,
CircuitId
circuitHost);
382
public static partial void FailedToFindCircuit(ILogger logger,
CircuitId
circuitHost);
385
public static partial void ConnectingToActiveCircuit(ILogger logger,
CircuitId
circuitId, string connectionId);
388
public static partial void ConnectingToDisconnectedCircuit(ILogger logger,
CircuitId
circuitId, string connectionId);
391
public static partial void FailedToReconnectToCircuit(ILogger logger,
CircuitId
circuitId, Exception exception = null);
394
public static partial void CircuitDisconnectStarted(ILogger logger,
CircuitId
circuitId, string connectionId);
397
public static partial void CircuitNotActive(ILogger logger,
CircuitId
circuitId);
400
public static partial void CircuitConnectedToDifferentConnection(ILogger logger,
CircuitId
circuitId, string connectionId);
403
public static partial void CircuitMarkedDisconnected(ILogger logger,
CircuitId
circuitId);
406
public static partial void CircuitEvicted(ILogger logger,
CircuitId
circuitId, EvictionReason evictionReason);
409
public static partial void CircuitDisconnectedPermanently(ILogger logger,
CircuitId
circuitId);
412
public static partial void CircuitExceptionHandlerFailed(ILogger logger,
CircuitId
circuitId, Exception exception);
415
public static partial void ReconnectionSucceeded(ILogger logger,
CircuitId
circuitId);
ComponentHub.cs (4)
194
if (!_circuitIdFactory.TryParseCircuitId(circuitIdSecret, out
var
circuitId))
378
public static partial void CircuitAlreadyInitialized(ILogger logger,
CircuitId
circuitId);
393
private static partial void CreatedCircuitCore(ILogger logger,
CircuitId
circuitId, string circuitIdSecret, string connectionId);
395
public static void CreatedCircuit(ILogger logger,
CircuitId
circuitId, string circuitSecret, string connectionId)
Microsoft.AspNetCore.Components.Server.Tests (7)
CircuitDisconnectMiddlewareTest.cs (3)
137
var
circuitId = circuitIdFactory.CreateCircuitId();
170
var
circuitId = circuitIdFactory.CreateCircuitId();
207
var
circuitId = circuitIdFactory.CreateCircuitId();
Circuits\CircuitIdFactoryTest.cs (4)
16
var
secret = factory.CreateCircuitId();
44
var
id = factory.CreateCircuitId();
47
var isValid = factory.TryParseCircuitId(id.Secret, out
var
parsed);
74
var
secret = factory.CreateCircuitId();