question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PostAsync(T object)

See original GitHub issue

I followed the tutorials and noticed that in the latest version of this library (3.0.3) on Nuget, PostAsync only allows for a string payload, what is the workaround for this, do we have to convert the strongly typed object to a string first or is this is a mistake?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

5reactions
devgeek27commented, Nov 23, 2017

I see. Thanks. This code needs to be included to make that work: using Firebase.Database.Query;

0reactions
codegruecommented, Dec 29, 2017

The samples show queries well but nothing on doing an update. Something like a CRUD ToDo demo would be very helpful


From: Tomas Bezouska notifications@github.com Sent: Monday, December 25, 2017 7:04:14 AM To: step-up-labs/firebase-database-dotnet Cc: codegrue; Comment Subject: Re: [step-up-labs/firebase-database-dotnet] PostAsync(T object) (#113)

Some samples can be found here: https://medium.com/step-up-labs/firebase-c-library-5c342989ad18https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmedium.com%2Fstep-up-labs%2Ffirebase-c-library-5c342989ad18&data=02|01||58cc228478c74dd172d408d54b8f9ec2|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636498002564862101&sdata=PnmcgtXtRA%2BKMR%2BtO25T18Y2d9wAvnPsyU3OxxFibTs%3D&reserved=0

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstep-up-labs%2Ffirebase-database-dotnet%2Fissues%2F113%23issuecomment-353864862&data=02|01||58cc228478c74dd172d408d54b8f9ec2|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636498002564862101&sdata=HWIa7dLZE1DfwgmAdBouIRJN792IAvKuTdgU%2BeXHRh0%3D&reserved=0, or mute the threadhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACx5OI6u51p0X575v4sx7K7lvR15pjisks5tD48-gaJpZM4QkaQ4&data=02|01||58cc228478c74dd172d408d54b8f9ec2|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636498002564862101&sdata=1EPJ0CBAOLihEPBXS7bNdWmlk%2B6A16hy706g4zVCokc%3D&reserved=0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I pass an object to HttpClient.PostAsync and ...
So, while you can pass an object to PostAsync it must be of type HttpContent and your anonymous type does not meet that...
Read more >
HttpClient.PostAsync Method (System.Net.Http)
A cancellation token that can be used by other objects or threads to receive notice of cancellation. Returns. Task<HttpResponseMessage>. The task object ......
Read more >
HttpClient GetAsync, PostAsync, SendAsync in C# - ...
HttpClient is a library in the Microsoft .NET framework 4+ that is used for GET and POST requests. Let's go through a simple...
Read more >
How do I pass an object to HttpClient.PostAsync and serialize ...
Coding example for the question How do I pass an object to HttpClient.PostAsync and serialize as a JSON body?-C#.
Read more >
C# HttpClient PostAsync not returning the response...
I need the new object details to add a reference to some other object. I have tried with both HttpClient and HttpRequest but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found