Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

122
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!