Showing posts from December, 2017

Coingate in .Net

Accepting payment in Bitcoin C# Accepting payment on your e-commerce site, online stores and your custom website have never been easy, but with the Bitcoin Payment Gateway, it is a relief. There is a lot of BTC payment gateway on the internet which provides means for merchants to receive payment, Buy and Sell BTC, receive BTC in their local currency and also create digital wallets. The few providers out there are: And lots more… BTC payment using Coingate Coingate allows you to buy and sell Bitcoin, accept Bitcoin using the merchant API. For Java/PHP developers, visit the developer section for implementation guide or you can download one of the examples listed.  In this tutorial, I am going to show you how to use C# to accept payment in BTC with Coingate. Before you can become a merchant you have to sign up and verify your account. For te

Sending Notification Message with Firebase with JavaScript and .Net client

Sending Notification Message with Firebase with JavaScript and ASP.Net client Introduction to Firebase Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost.   FCM server has two components for sending and receiving messages which are: The trusted environment (app server) FCM servers It is the job of the app server to send the message to the FCM server which then sends the message to the client device. The trusted environment can be an app server for sending messages; you can also use the Admin SDK or HTTP and XMPP APIs. The work of the server is to forward the message to the FCM server which then sends to the client. Find out more about how it works here:   In this tutorial, I will show you how to use firebase using JavaScript client to send token and notification messages to the FCM Legacy server. Setting up Firebase Cloud Messaging C

c# - Self referencing loop detected (Solved 2-Ways)

Getting around C# self-referencing loop exception Sometimes we come across this kind of error when building web apps. This kind of error occurs when we have multiple navigational properties in the model and EF cannot parse the relational objects. The best way to overcome this is to use the Newtonsoft library to parse it to a string, use a DTO object or anonymous types to pass the data required or set this in the Global.asax file to ignore reference loop handling GlobalConfiguration . Configuration . Formatters . JsonFormatter . SerializerSettings . Re ‌ ​ ferenceLoopHandling = ReferenceLoopHandling . Ignore ; The Model class If you have a product model class that has a navigational property Category, it would be hard for EF to parse the results of both properties to the view. Take a product class for example: public class Product{    public int Id { get; set; }    public string Name{ get; set; }    public decimal Price{ get; set; }    public virtual Category Category

Visual Studio 2017 Live Share

Visual Studio Introduces Live Sharing Collaboration is key when it comes to working on a project with teams. Visual studio has improved drastically over the years. Visual studio 2017 allows developers to collaborate on projects at real-time. This is not like GIT of TFS, it is something that would eventually be an improvement and would make work easier and faster for developers. Imagine when working on a project and you share a portion of your code to a fellow developer to monitor, track your progress and even correct your mistakes at real-time. Cool right? Yeah!!! Hail Visual Studio. Check out this video to know more about Visual Studio Live Sharing More Features Visual Studio 2017 also has more new great features that enhances the productivity of developers around the globe. The features are: You can now navigate, write, and fix your code fast Quickly find and fix bugs Use version control to collaborate efficiently And lots more... Visit visual studio w