Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

125
Visualizações
Google Cloud and Google.Cloud.Functions.Framework

I'm using Google Cloud function with .net core and Google.Cloud.Functions.Framework to log user activity. I've considered to use DB to store these activities, however at first step I will try to store it in simple text file on google storage (is it proper from architectural point of view?).

My question is how can I write to google bucket using .net core and google function (my function is triggered on HTTP) and looks simple like this

    public async Task HandleAsync(HttpContext context)
    {
         //code goes here
         await context.Response.WriteAsync("Activity logged");
    }
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You would use the Google.Cloud.Storage.V1 NuGet package (documentation), just as you would from any other environment. (There's nothing special here in terms of Google Cloud Functions - authentication should work out of the box without any extra credentials.)

We have a sample function that integrates both Google Cloud Storage and the Vision API, which includes uploading a file to Google Cloud Storage.

I would recommend using dependency injection via a FunctionsStartup class to configure the StorageClient, then you should be able to just upload an object to the bucket in a straightforward way.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda