23 lines
872 B
C#
23 lines
872 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace IpcLibrary.Core {
|
|
/// <summary>
|
|
/// 配置选项
|
|
/// </summary>
|
|
public class IPCConfiguration {
|
|
public TimeSpan HeartbeatInterval { get; set; } = TimeSpan.FromSeconds(5);
|
|
public TimeSpan ConnectionTimeout { get; set; } = TimeSpan.FromSeconds(30);
|
|
public TimeSpan MethodCallTimeout { get; set; } = TimeSpan.FromSeconds(60);
|
|
public int MaxRetryAttempts { get; set; } = 3;
|
|
public TimeSpan RetryDelay { get; set; } = TimeSpan.FromSeconds(1);
|
|
public bool EnableAutoReconnect { get; set; } = true;
|
|
public bool EnableHeartbeat { get; set; } = true;
|
|
public int MaxConcurrentConnections { get; set; } = 100;
|
|
public string LogLevel { get; set; } = "Info";
|
|
}
|
|
}
|