コード例 #1
0
ファイル: Program.cs プロジェクト: wfu8/lightwave
 static void TestGetDCName()
 {
     using (Client client = new Client(server, user, password))
     {
         CDC_DC_INFO dcInfo = client.CdcGetDCName(domain, site, 0);
     }
 }
コード例 #2
0
 /// <summary>
 /// Converts the dc to psc dto.
 /// </summary>
 /// <param name="dcs">Dcs.</param>
 /// <param name="dc">Dc.</param>
 public List <InfrastructureDto> ConvertDcToPscDto(CDC_DC_INFO dc, IList <string> dcs)
 {
     return((dcs == null)? new List <InfrastructureDto> ()
                         : dcs.Select(
                x => new InfrastructureDto
     {
         Name = x,
         IsAffinitized = (x == dc.pszDCName)
     }
                ).ToList());
 }