public RpcUdpServer(RpcUdpConfigurationServer configuration) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } if (configuration.Serializer == null) { throw new ArgumentNullException(nameof(configuration.Serializer)); } configuration.Lock(); this.configuration = configuration; this.innerUdpServer = new InnerUdpServer(this, configuration); this.logger = configuration.LogManager.GetLogger(nameof(RpcUdpServer)); this.logger.Meta["kind"] = this.GetType().Name; }
public InnerUdpServer(RpcUdpServer parent, RpcUdpConfigurationServer configuration) : base(configuration.UdpConfiguration) { this.parent = parent; }