コード例 #1
0
ファイル: RequestSender.cs プロジェクト: Vitaliy320/grpc
        public static async Task CreateDatabaseAsync(string name)
        {
            //Console.WriteLine("Type a database name:");
            //var databaseName = Console.ReadLine();

            var userPath = constants.path + name + constants.databaseExtension;

            var reply = await client.CreateDatabaseAsync(new DatabaseRequest
            {
                Name = name,
                Path = userPath
            });

            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine("Database created:");
            Console.WriteLine(reply.DatabaseName + ", " + reply.DatabasePath);
        }