Example #1
0
 public ServerContext(ServerConfiguration config)
 {
     if (config == null)
     {
         throw new ArgumentNullException(nameof(config));
     }
     _source = new ServerConnection(config.Source);
     _target = config.Local ? _source : new ServerConnection(config.Target);
 }
 public ServerContext(ServerConfiguration config)
 {
     _source = new ServerConnection(config.Source);
     _target = config.Local ? _source : new ServerConnection(config.Target);
 }