A message broker is a very important component in a software architecture. In a company, it's the element that deal with the communications between many applications, if not all; so the monitoring of the performance and the healty of this system is very important. Fortunately RabbitMQ offer a lot of api that we can call... Continue Reading →
Managing OAuth 2 authentication with Swagger
In this post I want to talk about a product that could help us to produce documentation about the Web API services implemented in our application. Swagger is a popular framework that once installed in an ASP.NET application is able to produce documentation about all the Web API implemented in the project. Furthermore it give... Continue Reading →
Consume Web API OData with ODataAngularResources
One month ago, I wrote this post about the odata services and how we can consume those with the $http factory of Angularjs. This approach is not wrong but is not smart at all, because we have to write every query for any call that the application needs to do, and is not flexible. What... Continue Reading →
Consume Web API with an Angularjs service
This topic concerns a problem that I faced in these days, that was the building of an Angularjs service to consume Web API's, witch in my case were implemented with OData protocol. The start point are some Web API's, one for every entity of the project, that they responds to a specific url, for example:... Continue Reading →
Web API in ASP.NET Core
In this post I'll talk about the Web API in ASP.NET Core and how we can implement a Restful service with this new framework. One of the main difference in ASP.NET Core is that Web API have an unified class with the classic MVC Controllers. So the declaration of a Web API in ASP.NET Core... Continue Reading →
Manage attachments chunks with ASP.NET Web Api
In the previous post I spoke about a custom MultipartFormData stream provider and how it can help us to manage some custom informations included in a request message. In that example I generated chunks form a file and I sent those to a rest service (AKA Web API) with some additional informations that were then retrieved from the... Continue Reading →
Custom MultipartFormDataStreamProvider in C#
Frequently, when we manage multipart/form requests and we send them to the server, we might want to add some additional informations. Perhaps we might want to split a big file in chunks and we might want to add some additional informations like the id of the upload session, the chunk number, the file name and... Continue Reading →
Real-time search with ASP.NET and Elasticsearch
A common problem that we are faced when we have deployed our applications is improve the performance of a page or feature. In my case for example I had a field where I could search and select a city, so the starting elements were a lot and the search was quite slow; I wanted a... Continue Reading →
Attachments management with Angular 2
A common issue that we faced in our applications is implement a component to allow the management of the attachment upload. We need to insert a file input field in the page, grab the change event of the field, extract the file and send it to a service. Recently I have needed to implement this... Continue Reading →
Http service in Angular 2
Use the http service in Angular 1 meant to deal with promises and defer, because it was based on APIs exposed by the $q service. Angular 2 makes a step ahead and the new implementation of the http service involves the observable pattern, with the using of RxJS javascript library. Why this big change? Because... Continue Reading →