Example #1
0
        protected BaseSubscriber(IGCPConfiguration configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }

            ProjectId  = configuration.ProjectId;
            Subscriber = SubscriberServiceApiClient.Create();
        }
Example #2
0
 public StorageService(IGCPConfiguration gcpConfiguration)
 {
     GCPConfiguration = gcpConfiguration ?? throw new ArgumentNullException(nameof(gcpConfiguration));
     StorageClient    = StorageClient.Create();
 }
Example #3
0
 public LogService(IGCPConfiguration gcpConfiguration)
 {
     GCPConfiguration = gcpConfiguration ?? throw new ArgumentNullException(nameof(gcpConfiguration));
     LogClient        = LoggingServiceV2Client.Create();
 }