public TeamCityServiceMessageWriter(Action<string> writer) { if (writer == null) throw new ArgumentNullException("writer"); this.writer = writer; }