예제 #1
0
 public void Prepare(HashFileType type)
 {
     Save.Type = type;
     ServerId  = type == HashFileType.Collector
         ? new WriterDescription(Save.Host, Save.PortForCollector)
         : new WriterDescription(Save.Host, Save.PortForDistributor);
 }
예제 #2
0
 public void SetServer(WriterDescription server)
 {
     ServerId = server;
 }