コード例 #1
0
ファイル: ServerContext.cs プロジェクト: dbremner/cassia
 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);
 }
コード例 #2
0
 public ServerContext(ServerConfiguration config)
 {
     _source = new ServerConnection(config.Source);
     _target = config.Local ? _source : new ServerConnection(config.Target);
 }