Example #1
0
 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;
 }
Example #2
0
 public InnerUdpServer(RpcUdpServer parent, RpcUdpConfigurationServer configuration) : base(configuration.UdpConfiguration)
 {
     this.parent = parent;
 }