Azure function v1 runtime- C# Queue trigger – Step by step

You want to develop a C# component which when deployed as an Azure function can handle messages from a Azure queue and carry out some custom task, without having to poll the queue.  You have ample documentation on MSDN. However, I discovered that the devil is in the details. The Cloud promises to solve your infrastructure scalability issues but there is learning curve which is not very widely talked. As it happens with AWS and Azure, there is no single best approach. You can always use a continuous job inside an Azure Web App which will poll the queue.

Read more of this post

Advertisements

C# Performance – Lessons I have learnt

My current work involves working with PDF documents. I deal with processing text elements and vector graphics in a PDF and make sense out of it through various machine learning models. I am using C# for most part of my coding. Over the course of my work I had to deal with very large lists and collections and carry out intensive graphical analysis. This taught me some very valuable lessons with regards to improving the runtime performance. I take this opportunity to share those experiences with the hope that this may help somebody.

Read more of this post

.NET Core Unit tests – how to deploy files without using DeploymentItem ?

MSTEST provides the DeploymentItem attribute which will instruct the test engine to copy over the files that you need. The DeploymentItem approach to handling of data files has been deprecated by XUNIT. Even if you are using MSTEST, I found DeploymentItem problematic with a large corpus of data files. So what is the alternative?

Read more of this post

Using Visual Studio.NET to develop custom HTML5/AJAX User Intefaces over SharePoint

TaskManagement1

Example of a bespoke application built with SharePoint as a backend

Read more of this post

SharePoint 2013 JavaScript CSOM without referencing out of box master page.

I was looking for a way to avoid the bloat that comes when you reference a SharePoint master page.  If you are developing bespoke user interfaces using HTML5/AJAX approach and you want to keep your pages as light as possible then you might find this approach useful. A hello world example of invoking Client Side Object Model is presented below. Tested on SharePoint 2013. This is a bare bones sample which will display the title of the current site and fetch a collection of all lists in the current web.

Read more of this post

PowerShell cmdlets that work with SharePoint over HTTP

 

Working with large banks in the past few years has made me realize that managing large Site collections can be simplified if there is some scripting support. Obviously, the Farm admin has all the tools at his/her disposal. But, what about the power user who is managing a large site collection. With this problem in mind I started developing some PowerShell cmdlets which would interact with SharePoint using the out of box web services.

Read more of this post

SharePoint 2007 – Breathing life into a large document repository with a ‘skin’ created using AJAX/HTML5

Think of a very large site collection with over 1000 document libraries created over several years and spanning 150 sub sites. I work for an Investment Bank which is facing such a scenario. Due to strict information security regulations access to every sub-site and document library is controlled through dedicated security groups. While there is not a shred of doubt that SharePoint deserves credit in this implementation, it was my observation that system had grown so large that users were often spending too much time trying to find content. In simple terms – there were too many clicks involved in getting to a document library. SharePoint 2013 has been rolled out in the bank, however there is far too much that has been invested in SharePoint 2007 and migration is far more complicated that it appears in writing. It was not just migration of content but also the need for solving the challenge I just described.

Read more of this post