Skip to content

Commit

Permalink
Close issue #69.
Browse files Browse the repository at this point in the history
  • Loading branch information
yallie committed Nov 19, 2024
1 parent f38a6c2 commit 8c9f3ee
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions CoreRemoting/CallContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static class CallContext
{
private static readonly ConcurrentDictionary<string, AsyncLocal<object>> State =
new ConcurrentDictionary<string, AsyncLocal<object>>();

/// <summary>
/// Stores a given object and associates it with the specified name.
/// </summary>
Expand Down Expand Up @@ -67,7 +67,7 @@ public static void RestoreFromSnapshot(IEnumerable<CallContextEntry> entries)
}
return;
}

foreach (var entry in entries)
{
CallContext.SetData(entry.Name, entry.Value);
Expand Down
14 changes: 7 additions & 7 deletions CoreRemoting/ClientConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ public ClientConfig()
{
UniqueClientInstanceName = Guid.NewGuid().ToString();
}

/// <summary>
/// Gets or sets the unique name of the configured client instance.
/// </summary>
public string UniqueClientInstanceName { get; set; }

/// <summary>
/// Gets or sets the connection timeout in seconds (0 means infinite).
/// </summary>
public int ConnectionTimeout { get; set; } = 120;

/// <summary>
/// Gets or sets the authentication timeout in seconds (0 means infinite).
/// </summary>
Expand All @@ -43,7 +43,7 @@ public ClientConfig()
/// Gets or sets the send timeout in seconds (0 means infinite).
/// </summary>
public int SendTimeout { get; set; } = 30;

/// <summary>
/// Gets or sets the host name of the CoreRemoting server to be connected to.
/// </summary>
Expand All @@ -53,7 +53,7 @@ public ClientConfig()
/// Gets or sets the network port of the CoreRemoting server to be connected to.
/// </summary>
public int ServerPort { get; set; } = 9090;

/// <summary>
/// Gets or sets the serializer to be used (Bson serializer is used, if set to null).
/// </summary>
Expand All @@ -68,13 +68,13 @@ public ClientConfig()
/// Gets or sets whether messages should be encrypted or not.
/// </summary>
public bool MessageEncryption { get; set; } = true;

/// <summary>
/// Gets or sets the client channel to be used for transport of messages over the wire (WebsocketClientChannel is used, if set to null).
/// </summary>
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
public IClientChannel Channel { get; set; }

/// <summary>
/// Gets or sets an array of credentials for authentication (depends on the authentication provider used on server side).
/// </summary>
Expand Down
18 changes: 9 additions & 9 deletions CoreRemoting/ServerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ServerConfig()
{
UniqueServerInstanceName = Guid.NewGuid().ToString();
}

/// <summary>
/// Gets or sets the host name.
/// </summary>
Expand All @@ -37,13 +37,13 @@ public ServerConfig()
/// </summary>
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global")]
public int KeySize { get; set; } = 4096;

/// <summary>
/// Gets or sets whether messages should be encrypted or not.
/// </summary>
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
public bool MessageEncryption { get; set; } = true;

/// <summary>
/// Gets or sets the serializer to be used (Bson serializer is used, if set to null).
/// </summary>
Expand All @@ -59,29 +59,29 @@ public ServerConfig()
/// Gets or sets an optional action which should be called on server startup to register services.
/// </summary>
public Action<IDependencyInjectionContainer> RegisterServicesAction { get; set; }

/// <summary>
/// Gets or sets the session repository to be used to manage sessions.
/// </summary>
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
public ISessionRepository SessionRepository { get; set; }

/// <summary>
/// Gets or sets the server channel to be used for transport of messages over the wire (WebsocketServerChannel is used, if set to null).
/// </summary>
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
public IServerChannel Channel { get; set; }

/// <summary>
/// Gets or sets whether authentication is required in order to establish a new session.
/// </summary>
public bool AuthenticationRequired { get; set; } = false;

/// <summary>
/// Gets or sets the authentication provider that should be used to handle authentication requests.
/// </summary>
public IAuthenticationProvider AuthenticationProvider { get; set; }

/// <summary>
/// Gets or sets the unique name of this server instance.
/// </summary>
Expand All @@ -96,7 +96,7 @@ public ServerConfig()
/// Gets or sets the maximum session inactivity time in minutes.
/// </summary>
public int MaximumSessionInactivityTime { get; set; } = 30;

/// <summary>
/// Gets or set whether this is the default server.
/// </summary>
Expand Down

0 comments on commit 8c9f3ee

Please sign in to comment.