Tim Murphy's .NET Software Architecture Blog

Development

Logging To Application Insights In Azure Functions

In my last post I covered logging in Azure Functions using TraceWriter and log4net. Both of these work, but Application Insights rolls all your monitoring into one solution, from metrics to tracking messages. I have also heard a rumor that in the near future this will be an integrated part of Azure Functions. Given these factors it seem wise to start give it a closer look. So how do you take advantage of them right now? If you go to GitHub there is a sample written by Christopher Anderson, but let ......

Implementing Logging In Azure Functions

Logging is essential to the support of any piece of code. In this post I will cover two approaches to logging in Azure Functions: TraceWriter and log4net. TraceWriter The TraceWriter that is available out of the box with Azure Functions is a good starting point. Unfortunately it is short lived and only 1000 messages are kept at a maximum and at most they are held in file form for two days. That being said, I would not skip using the TraceWriter. Your function will have a TraceWriter object passed ......

Local LINQtoSQL Database For Your Windows Phone 7 Application

There aren’t many applications that are of value without having some for of data store. In Windows Phone development we have a few options. You can store text directly to isolated storage. You can also use a number of third party libraries to create or mimic databases in isolated storage. With Mango we gained the ability to have a native .NET database approach which uses LINQ to SQL. In this article I will try to bring together the components needed to implement this last type of data store and fill ......

Using BingMapsDirectionsTask In Windows Phone 7

Windows Phone has a number of great capabilities built into it for developers. The Bing APIs allows you to easily give your application mapping functionality. You may just want to give users directions to a fixed location. What happens though when you want to give a user directions from their current location to an address that they are picking from application data? This article will cover just that scenario. Since almost everything in Windows Phone development is asynchronous this can get a little ......

Building Azure Functions: Part 3 – Coding Concerns

In this third part of my series on Azure Function development I will cover a number of development concepts and concerns. These are just some of the basics. You can look for more posts coming in the future that will cover specific topics in more detail. General Development One of the first things you will have to get used to is developing in a very stateless manner. Any other .NET application type has a class at its base. Functions, on the other hand, are just what they say, a method that runs within ......

Reading QR Codes In Your Windows Phone App

I have recently been working on an application for a client that needs to read QR codes. This has lead to some interesting findings. There are a couple of approaches you can use. One is to take a picture and evaluate it for a code and the other is more like the Bing Vision feature. Both of them can be accomplished by leveraging theSilverlight ZXing library from Codeplex. In order to have QR code images to test I would suggest going to QRStuff.com. It is a site where you can freely generate QR images ......

Pay It Forward

One of my hobbies is photography (webshots, zooomr) and I was listening to The Digital Photography Show podcast where the guest was Kevin Kubota. He presents photography seminars and is offering scholarships to his seminars. The interesting part of the application is that you have to describe what charity work you do. He said that he figures if he is doing something for you then you should be doing something for your community to show that you are serious. So how does this relate to architecture ......

Building Azure Functions: Part 2–Settings And References

This is the second post in a series on building Azure Functions. In this post I’ll continue by describing how to add settings to your function and reference different assemblies to give you more capabilities. Settings Functions do not have configuration files so you must add app settings and connection strings through the settings page. The settings are maintained at an Function App level and not individual functions. While this allows you to share common configuration values it means that if your ......

Building Azure Functions: Part 1–Creating and Binding

The latest buzz word is serverless applications. Azure Functions are Microsoft’s offering in this space. As with most products that are new on the cloud Azure Functions are still evolving and therefore can be challenging to develop. Documentation is still being worked on at the time I am writing this so here are some things that I have learned while implementing them. There is a lot to cover here so I am going to break this topic into a few posts: Creating and Binding Settings and References Coding ......

Application Integration: Azure Functions Vs WebJobs

[Updated]UI development gets all the attention, but application integration is where the real work is done. When it comes to application integration in the Azure ecosystem you better learn how Functions and WebJobs are developed and under what conditions you should use each. In this post I will try to answer those questions. For me it is important that a solutions is reasonably maintainable, deployable through environments and can be easily managed under source control. Both products are built on ......

Full Development Archive