Пример #1
0
 internal HelloWorld(HelloWorldSettings settings)
 {
     _settings = settings;
     _bigtableTableAdminClient = BigtableTableAdminClient.Create();
     _bigtableClient           = BigtableClient.Create();
     _tableNameAdmin           = new Google.Cloud.Bigtable.Admin.V2.TableName(_settings.ProjectId, _settings.InstanceId, _settings.TableName);
     _tableNameClient          = new Google.Cloud.Bigtable.V2.TableName(_settings.ProjectId, _settings.InstanceId, _settings.TableName);
 }
Пример #2
0
        static void Main()
        {
            #region Set up application settings.
            var builder = new ConfigurationBuilder().
                          SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile("appsettings.json", true, true);

            IConfigurationRoot configuration = builder.Build();

            HelloWorldSettings settings = new HelloWorldSettings();
            configuration.Bind(settings);
            #endregion

            HelloWorld helloWorld = new HelloWorld(settings);
            helloWorld.DoHelloWorld();
        }