Mostrando entradas de 2018

ASP.NET Core Identity with Cosmos DB (MongoDB) Part2: ASP.NET Core Code

Hello and welcome back to this tutorial if you remember in the part 1: "ASP.NET Core Identity with Cosmos DB (MongoDB) Part1: Database Configuration" we configured our database services local and remote to store our identity service now in this part we will configure a simple Identity service with 3 endpoints.
RegisterLoginRetrieve User Data
ASP.NET Core is the evolution of Microsoft ASP.NET framework as a key feature is that it runs under the .NET Core which is  cross-platform, high-performance & open source development platform that mixed with ASP.NET Core allow developers to build cloud modern applications.

In this tutorial we will use the latests stable ASP.NET Core 2.1 using Visual Studio for Mac you can either use Visual Studio for Mac, Visual Studio for Windows, Visual Studio Code or compile the project using console.

Lets start creating a new ASP.NET Core Web Api following next steps:

Select .NET Core 2.1 as target framework

Set a project name

If ever…

ASP.NET Core Identity with Cosmos DB (MongoDB) Part1: Database Configuration

Hello folks this time I bring to you a very simple an useful tutorial to show you how fast you can start creating awesome services and apps using the .NET framework and in this case a NoSQL database.

This will be the first of 3 post series about how to implement ASP.NET Core Identity with Cosmos DB (MongoDB) and expose it over a Web API, in this first blog we will see the configuration of the database to use both a local instance and Cosmos DB of MongoDB for live version.

Let's start first revising what is? and why? MongoDB


MongoDB is free and open source NoSQL database and is very popular in a lot of companies because his paradigm allow to quickly scale large and modern apps, let's analyze some points from MongoDB webpage:

What is NoSQL?
NoSQL encompasses a wide variety of different database technologies that were developed in response to the demands presented in building modern applications:

Developers are working with applications that create massive volumes of new, …

Xamarin.Forms: Custom Context Actions on iOS

Xamarin.Forms: Custom Context Actions on iOS
Hello folks now is time to talk about customize context action views on Xamarin.Forms cell for iOS (yes the red/light-gray options that appear when you swipe a cell) the default colors are not a good-looking, so right now is a little bit tricky to achieve that but we will use a reflection technique to achieve the next two escenarios: Change background color for default and destructive context actionSet custom view for default and destructive context action first at all, lets take a look to native impl. on Xamarin.Forms Github project on the next url

Here we have two key items "DestructiveBackground" and "NormalBackground" both are the Images  that Xamarin.Forms use to put as background on the default ContextActions view(Gray/Red)

Not bad but sometimes we need to put some love into the …

Xamarin: 2018 Hot Topics

Xamarin: 2018 Hot Topics A new year is just beginning but .net mobile development is moving very fast and a tons of new features & tools are being created or updated, next I'll list only a few new things that will help to improve your .net mobile skills.

1. Visual Studio App Center (https://appcenter.ms)

App Center (formerly Azure Mobile Center) is CI platform that allow you build, test, release and monitor your apps in a very fast and friendly way, currently the platform supports Swift, Obj-C, Java, Xamarin & React Native also you can start with the free tier and pay as your app grows. As part of the platform you’ll able to use the next 6 features. - Build Allow to use common Git services like VSTS, GitHub & Bitbucket to create automated build based on push triggers or manual build tasks also you’re able to configure custom build scripts, environment variables, Custom signing certificates, distribute and testing taks. - Test This feature allows you to configure test runs…