I want to connect my C# windows based app to firebase realtime database. Is there any convenient library to do the same? or is there any better method to do so?
From this link here you can say that FirebaseDatabase.net is better than another older library like FireSharp and FirebaseSharp :
They both have their imperfections, specifically related to realtime streaming.
For example, when we subscribe to a location, and a change happens to some nested node, FireSharp won’t correctly pair it with the top level entity and will only return the path and data as a string. We want the deserialization to be automatic.
FirebaseSharp‘s streaming implementation is even more unfortunate — at first, it fetches everything from a given location (even when we specify filtering options) and does the filtering locally. This is obviously not usable when there are thousands of items.
Also, neither of them targets Universal Windows Platform.
Firebase for Windows is not release ready yet. We have a C++ library and a C# library for firebase and both of them support Windows. But a quick look at the support pages will show you that Firebase is only supported for Android, iOS and Web. The desktop version of Firebase API's is a beta feature and is not recommended for shipping. You can integrate it but you are not supposed to ship it. I would recommend going through Firebase alternatives instead of shipping your product with Firebase and waiting for the desktop version to be out of beta for you to ship it.
Following the instruction here.
It might help you.
He's using Google.Cloud.Storage and Google.Cloud.Firestore to make connect and retrieve data from collection.
Related
Does anybody of you guys have experiences with including a C#-based Console Application in a C#-based Universal Windows App?
The reason why I'm asking: I've an already exsisting Console Application developed by another developer. This Application includes a database with all the queries which I need for my App.
The problem: When I try to include the CA in my UWA project many commands like
private global::System.Runtime.InteropServices.HandleRef
throw new global::System.ApplicationException
don't get identified by VS2015.
Is there a way to let the UWA project identify CA commands? For example with adding an external CA-library or something like that.
Thank you!
You can't combine full .NET (console, winforms, WPF) assemblies with an UWP app, as they're different .NET frameworks. For more details, please read this reply. Part of the code is shareable in a Portable Class Library (PCL), but most likely not all of the code you've written.
Possible solutions:
Create an API (yourself or with the other developer) to expose the functionality needed over a (preferably) REST api.
Find a way to cheat the system. Example: launch a file (associated to the console application) with the Launcher api and output the results to a text file on disk, which you then read from your UWP app.
The first one is guaranteed to work. You might find a way to cheat the system for the second 'solution', but there's no guarantee that it won't break in the future when Windows 10 gets updated (experienced that myself for another 'hack' on the upgrade between Windows 8 and 8.1).
I'm tasked with a need to migrate an application I previously created as a Windows service in .NET to an application which can be added to the windows store. (Which I understand must use the UWP format, but please correct me if that's wrong.)
My service collected data about CPU, Memory, Network data and uptime and then could ship it off via a call to my external RESTful API.
Moving to the UWP format, all of my previous code becomes invalid. (I don't have access to System.Diagnostics.Performance counter, for instance.)
I've been looking at all options, including using C++ to get at Native Calls, but that doesn't seem to help.
It dawned on me that the performance tab in task manager is gathering exactly the data I need. So my root question is, how can I get at this type of data using an application which can be built for the windows store?
Sample of the Performance Tab in W10 Task Manager
TIA,
Jeremy
I think that you can not collect the diagnostics you need with uwp apis
I had thought that my Windows App was finished and ready for release. However, during the certification process, ACK told me Tag-Lib# uses API that the Windows Store does not support. Now I need to find some other way that the Windows Store DOES support to be able to programmatically set the album art for songs. Any ideas? (I would also be happy if anyone knew of a way to modify Tag-Lib# to comply with the Windows Store restrictions.)
Use the Windows App Certification Kit to see which API's are called. Then try to modify the Tag-Lib# source to not use those API's, or pick the relevant code and build your own library.
Though I think, given it's used for reading and writing files, it relies on System.IO which will require quite some rewriting to Windows.Storage.
I realize there will be additional work (as the SDK only works on Windows 8 and WP8) as the SDK provides controls to provide a login sequence (via Microsoft Account, Facebook, etc).
I am wondering if it is possible to achieve the same result with a Windows Phone 7 app? I've been searching for a while, and there is not much on Mobile Services at all, let alone for WP7. Is there some (technical?) reason (besides the fact that WP7 is not the latest and greatest) that Microsoft has left WP7 out in the cold with Azure Services?
I realize that just accessing the data via REST in WP7 is trivial, but I'm really getting at is the entire process of using deferred authentication restricting access to users own data only, is this doable without their SDK without a monumental effort?
It turns out that the SDK is open source, and the source is at https://github.com/WindowsAzure/azure-mobile-services .
Now, I haven't dug into the source, and don't know what the porting effort might look like, but it seems reasonable to think that it shouldn't be too much of an effort.
Good luck, and share it back if you make progress. :)
Adam Hoffman
Windows Azure Blog - http://stratospher.es
Twittererer - #stratospher_es
A preview of the new C# client which supports Windows Phone 7.5 is now available to try out. Remember it is pre-release and therefore not supported. http://www.johanlaanstra.nl/?p=217
Officially no I am afraid.
But you can find a (partial) client platform agnostic implementation in a form of a C# SDK here:
https://github.com/kenegozi/azure-mobile-csharp-sdk
This will allow you to use Azure Mobile Services with WP7 I guess.
I need to write VoIP/SIP Soft Phone in C# using WPF interface with Audio support only.
I need to have call transfer, call conference, and recording of conversations in mp3.
I've looked at VoIP SDK from ABTO LLC, but it is slow at application startup (30 seconds to start application, I think it's related to loading activex part of this sdk).
I've also looked at SIP.Net, but it's only for SIP and doesn't contain components for voice data transfer.
I have very limited time only 2 months from zero to fully working app.
What SDK can I use to accomplish this task?
Windows 7 must be supported.
We have done this using SipekSDK. It's written on top of famous pjSIP open source SIPClient project. It does all the operations you have mentioned in the question.
https://sites.google.com/site/sipekvoip/
What is the Sip server you are going to use ? If its not asterisk, you can have a look of microsoft's Lync here.
You can download the Lync SDK and start exploring. Not just the audio call, Microsoft Lync has features like video call, chat, presence, conference etc.... and ofcourse connectivity to landline/pstn through voip providers
Another interesting article explaining the different SDKs for unified communications can be found here
Edit: If its for Asterisk, Sipek is the only available free opensource but we had lot of problems in installing in clients system like
C folder access
Poor device
support
Port conflict- If any
other voip app like qutecom runs on
5060, then Sipek wont run as the
port is being used already.
I struggled with this exact issue and eventually came across ABTO LLC.
They have an SDK available that supports Win 7, Win XP and can be used in WPF.
We did ask them though to build a separate SDK example for us as we are using ClickOnce for our deployments and so registering external libraries is impossible, but they graciously did it and i think have integrated into their SDK, if not then ask them to give it to you.
We are using a FreeSwitch SIP Server combined with ABTO's library and it is working like a dream. We are doing VoIP, Video and Conferencing and have had no issues at all.
The application I added the VoIP functionality to is a WPF 4 app.