示例#1
0
    public Topic CreateTopic(string topicId)
    {
        var createTopicSampleObject = new CreateTopicSample();
        var topic = createTopicSampleObject.CreateTopic(ProjectId, topicId);

        TempTopicIds.Add(topicId);
        return(topic);
    }
示例#2
0
    public Topic CreateTopicWithSchema(string topicId, string schemaId, Encoding encoding)
    {
        var createTopicWithSchemaSampleObject = new CreateTopicWithSchemaSample();
        var topic = createTopicWithSchemaSampleObject.CreateTopicWithSchema(ProjectId, topicId, schemaId, encoding);

        TempTopicIds.Add(topicId);
        return(topic);
    }