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