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