/// <inheritdoc /> protected override IManagedNetworkClient <AuthenticationClientPayload, AuthenticationServerPayload> BuildOutgoingSessionManagedClient(NetworkClientBase clientBase, INetworkSerializationService serializeService) { //We need to create an actual client to the server too. return(clientBase .AddHeaderlessNetworkMessageReading(serializeService) .For <AuthenticationServerPayload, AuthenticationClientPayload, IAuthenticationPayload>() .Build() .AsManagedSession(Logger)); }
/// <inheritdoc /> protected override IManagedNetworkServerClient <AuthenticationServerPayload, AuthenticationClientPayload> BuildIncomingSessionManagedClient(NetworkClientBase clientBase, INetworkSerializationService serializeService) { //TODO: Are any details actually valuable here? if (Logger.IsInfoEnabled) { Logger.Info($"Client connected to proxy."); } //The auth server is encryptionless and 'headerless' so we do not need to support that on the proxy for the auth server return(clientBase .AddHeaderlessNetworkMessageReading(serializeService) .For <AuthenticationClientPayload, AuthenticationServerPayload, IAuthenticationPayload>() .Build() .AsManagedSession(Logger)); }