public void Publish(string message, Dictionary <string, string> attributes = null) { message.ThrowExceptionIfNullOrEmpty("message"); ValidateProjectIdIsSet(); ValidateTopicIdIsSet(); _publishService.PublishMessage(_projectId, _topicId, message, attributes); }