CRUD application using ASP.NET 5 and MongoDB

MongoDB (from humongous) is one of many cross-platform document-oriented databases. Classified as a NoSQL database, MongoDB eschews the traditional table-based relational database structure in favor of JSON-like documents with dynamic schemas (MongoDB calls the format BSON), making the integration of data in certain types of applications easier and faster. Released...


Continuous Integration with ASP.NET 5, GitHub and Travis CI

This post is about setting up a simple continuous integration environment for ASP.NET 5 with GitHub and Travis-CI. So when ever someone commits to the source, the build will be triggered. Once the build is succeeds, all the unit tests will be executes. If all the tests pass, the build...


How to host ASP.NET 5 Application in Azure Web Apps

This post is about hosting ASP.NET 5 Application in Azure WebApps / Websites. If you are using Visual Studio, you can use the publish wizard. But if you are using k or dnx runtimes this option is not available. ASP.NET wiki in GitHub contains a page about FTP deploy but...


How to change lync status using C#

Another Lync post :) This snippet will help you to change the lync status(available, away, busy etc) using C# and Lync API. As I mentioned in the earlier post, you need to install the Lync SDK. Here is the snippet var lyncClient = LyncClient.GetClient(); lyncClient.Self.BeginPublishContactInformation( new Dictionary<PublishableContactInformationType, object>() { {...


Building a Lync bot using C#

Long back I wrote an article on creating a language translation bot using Skype and C#, since Microsoft stopped Skype COM API, and I am using lync more than Skype, I thought of writing the same implementation using lync. The implementation is pretty same, you have to get the instance...


Android - How to intercept SMS messages and prevent them from appearing in the Inbox

Android allows app developers to intercept SMS, here is the code snippet, which will help you to get the sms details and if you require you can stop them appearing in the inbox. First you need to set the permission for the app to receive and process SMS. You can...


Creating user friendly strings for C# enums

Recently one of my colleague asked me question, he want to create a enum with string values. But C# doesn’t support string based enums, so here is the code snippet which will help you to associate string values to enums. This code is not using any custom attribute, instead it...