From 8c9f3ee503ac344caa92caa9563327a5814e5fc4 Mon Sep 17 00:00:00 2001 From: yallie Date: Wed, 20 Nov 2024 02:26:48 +0300 Subject: [PATCH] Close issue #69. --- CoreRemoting/CallContext.cs | 4 ++-- CoreRemoting/ClientConfig.cs | 14 +++++++------- CoreRemoting/ServerConfig.cs | 18 +++++++++--------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/CoreRemoting/CallContext.cs b/CoreRemoting/CallContext.cs index 82f5b23..5365ce7 100644 --- a/CoreRemoting/CallContext.cs +++ b/CoreRemoting/CallContext.cs @@ -12,7 +12,7 @@ public static class CallContext { private static readonly ConcurrentDictionary> State = new ConcurrentDictionary>(); - + /// /// Stores a given object and associates it with the specified name. /// @@ -67,7 +67,7 @@ public static void RestoreFromSnapshot(IEnumerable entries) } return; } - + foreach (var entry in entries) { CallContext.SetData(entry.Name, entry.Value); diff --git a/CoreRemoting/ClientConfig.cs b/CoreRemoting/ClientConfig.cs index 36d7e19..49e5fcd 100644 --- a/CoreRemoting/ClientConfig.cs +++ b/CoreRemoting/ClientConfig.cs @@ -18,17 +18,17 @@ public ClientConfig() { UniqueClientInstanceName = Guid.NewGuid().ToString(); } - + /// /// Gets or sets the unique name of the configured client instance. /// public string UniqueClientInstanceName { get; set; } - + /// /// Gets or sets the connection timeout in seconds (0 means infinite). /// public int ConnectionTimeout { get; set; } = 120; - + /// /// Gets or sets the authentication timeout in seconds (0 means infinite). /// @@ -43,7 +43,7 @@ public ClientConfig() /// Gets or sets the send timeout in seconds (0 means infinite). /// public int SendTimeout { get; set; } = 30; - + /// /// Gets or sets the host name of the CoreRemoting server to be connected to. /// @@ -53,7 +53,7 @@ public ClientConfig() /// Gets or sets the network port of the CoreRemoting server to be connected to. /// public int ServerPort { get; set; } = 9090; - + /// /// Gets or sets the serializer to be used (Bson serializer is used, if set to null). /// @@ -68,13 +68,13 @@ public ClientConfig() /// Gets or sets whether messages should be encrypted or not. /// public bool MessageEncryption { get; set; } = true; - + /// /// Gets or sets the client channel to be used for transport of messages over the wire (WebsocketClientChannel is used, if set to null). /// [SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")] public IClientChannel Channel { get; set; } - + /// /// Gets or sets an array of credentials for authentication (depends on the authentication provider used on server side). /// diff --git a/CoreRemoting/ServerConfig.cs b/CoreRemoting/ServerConfig.cs index c135fd4..3ce3520 100644 --- a/CoreRemoting/ServerConfig.cs +++ b/CoreRemoting/ServerConfig.cs @@ -20,7 +20,7 @@ public ServerConfig() { UniqueServerInstanceName = Guid.NewGuid().ToString(); } - + /// /// Gets or sets the host name. /// @@ -37,13 +37,13 @@ public ServerConfig() /// [SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global")] public int KeySize { get; set; } = 4096; - + /// /// Gets or sets whether messages should be encrypted or not. /// [SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")] public bool MessageEncryption { get; set; } = true; - + /// /// Gets or sets the serializer to be used (Bson serializer is used, if set to null). /// @@ -59,29 +59,29 @@ public ServerConfig() /// Gets or sets an optional action which should be called on server startup to register services. /// public Action RegisterServicesAction { get; set; } - + /// /// Gets or sets the session repository to be used to manage sessions. /// [SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")] public ISessionRepository SessionRepository { get; set; } - + /// /// Gets or sets the server channel to be used for transport of messages over the wire (WebsocketServerChannel is used, if set to null). /// [SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")] public IServerChannel Channel { get; set; } - + /// /// Gets or sets whether authentication is required in order to establish a new session. /// public bool AuthenticationRequired { get; set; } = false; - + /// /// Gets or sets the authentication provider that should be used to handle authentication requests. /// public IAuthenticationProvider AuthenticationProvider { get; set; } - + /// /// Gets or sets the unique name of this server instance. /// @@ -96,7 +96,7 @@ public ServerConfig() /// Gets or sets the maximum session inactivity time in minutes. /// public int MaximumSessionInactivityTime { get; set; } = 30; - + /// /// Gets or set whether this is the default server. ///