GoogleCloudSamples.Services.BookDetailLookup.BookDetailLookup C# (CSharp) Method

BookDetailLookup() public method

public BookDetailLookup ( string projectId, Options options = null, ISimpleLogger logger = null ) : Google.Api.Gax
projectId string
options Options
logger ISimpleLogger
return Google.Api.Gax
        public BookDetailLookup(string projectId, Options options = null, ISimpleLogger logger = null)
        {
            options = options ?? new Options();

            _logger = logger ?? new DebugLogger();
            // [START pubsubpaths]
            _topicName = $"projects/{projectId}/topics/{options.TopicId}";
            _subscriptionName = $"projects/{projectId}/subscriptions/{options.SubscriptionId}";
            // [END pubsubpaths]
            _pub = PublisherClient.Create();
            _sub = SubscriberClient.Create();
        }