I wrote this article here that describes the requirements for creating an XDT file which will allow the configuration of attributes that must happen in the applicationHost.config file. As you know, you cannot simply / directly make a change to that file (applicationHost.config) on the Azure App Service, you have to extend it via this […]
Read More →Author: Benjamin Perkins
Quick way to deploy an Azure App Service from Visual Studio
This article has most to do with #AzureGermany #GermanCloud however the approach can be used in all Azure platforms. The point here is that there are numerous steps one must take in order to configure Visual Studio to connect to non-Public Azure instance. I mentioned some of those requirements here. There is also now an […]
Read More →CulturInfo not working as expected in C#
I have started working with Globalization and Localization functionality for a system I am building. I could not understand why, when I wanted to get the intellisense for the class that nothing showed up. After some time I decided to use the full name of the class to get to the methods like this: [sourcecode […]
Read More →Dynamic Type in C#, in comparison to var Type
Knowing the type of variable you are working with in C# and while programming in general is pretty important. You can’t add a double and an integer together and get an integer, without converting it. If you attempt to do this the compiler will throw an exception and you will not be able to run […]
Read More →Find a specific value within a generic list with a Lambda Expression using C#
With the release of C# 3.0 came Lambda Expressions. In a previous post I searched a generic list using a delegate, this is because, perhaps, I have done so much programming with C# 2.0 that it’s just a habit now. Time to move onto better, newer things, like Lambda Expressions. In the previous example I […]
Read More →Find a specific value within a generic list using C#
It is common to have a need to search though a generic list to know if it contains a specific value. This is where the Find() method can be used. There are many different scenarios you may encounter for searching, I will cover 2 here. The first is searching a list which contains a Class […]
Read More →Add Key Value Pairs to a Combobox using WPF and C#
It’s pretty easy to populate and read from a ComboBox when the selected item is the same as the selected value. I.e. just simply use: [sourcecode language=”csharp” padlinenumbers=”true”] string selection = comboBox1.SelectedValue.ToString(); [/sourcecode] However, when you need the value to be different from the item (I.e. display value). Perhaps you want to display the Month […]
Read More →Why does my Azure Function sometimes stop being triggered
Azure is so awesome because the features it provides are so very dynamic and flexible. The platform provides a starting point for the fruition of ideas, ideas only limited by ones imagination. With its dynamic nature and the flexibility it delivers to consumers, sometimes you just need a note to get your ideas optimally flowing […]
Read More →How (I) would handle a timeout in Azure Function
I wrote this article about adding a host.json file to an Azure Function “How to add a HOST.JSON file to an Azure Function” and while I was breaking it, I saw a behavior which I didn’t expect. The behavior was that my code within the try…catch… block continued to execute after the timeout, the code […]
Read More →How to add a HOST.JSON file to an Azure Function
I have written numerous articles about Azure Functions, view them here. NOTE: If you make changes to your function through KUDU/SCM or FTP it is likely those changes will not get synchronized. Please read here for more on that topic. The fact is, the HOST.JSON file is created for you when the Azure Function App […]
Read More →