Skip to main content

Posts

Showing posts from November, 2014

Code Reflection in C#

This article will introduce you to Code Reflection in C#. While the focus is on C# language here, the concepts can be applied to any technology based on Visual C#, such as ASP.NET, Windows Phone or Windows Store Apps. This article is also available of the Microsoft TechNet Wiki. This article was selected The Microsoft TechNet Guru Awards! (November 2014) Introduction
Reflection is the ability of a managed code to read its own metadata. 
You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object and invoke its methods or access its fields and properties. 
If you are using attributes in your code, reflection enables you to access them.


Uses of Code ReflectionBelow are some of the uses of code reflection:

1. Check the type of an object at run-time using MetaData 
2. Examining and instantiating types in an assembly. 
3. Dynamically create type instances and dynamically invoke the methods, fields, properties in cr…

The Microsoft TechNet Guru Awards! (October 2014)

Two of my articles won the Gold Medal for the Microsoft TechNet Guru Awards.

Link: http://blogs.technet.com/b/wikininjas/archive/2014/11/17/the-microsoft-technet-guru-awards-october-2014.aspx

Creating and Deploying Microsoft Azure WebJobs

Azure WebJobs enables you to run programs or scripts in your website as background processes. It runs and scales as part of Azure Web Sites.
This article focuses on the basics of WebJobs before demonstrating an example where it can be used.

This article is also available on the Mirosoft TechNet Wiki.
This article was highlighted in the The Microsoft TechNet Guru Awards! (October 2014).


Introduction
What is Microsoft Azure WebJobs?
Azure WebJobs enables you to run programs or scripts in your website as background processes. It runs and scales as part of Azure Web Sites.

What Scheduling Options is supported by Microsoft Azure WebJobs? Azure WebJobs can run Continuously, On Demand or on a Schedule.
In what language/scripts are WebJobs written?
Azure WebJobs can be created using the following scripts:  .cmd, .bat, .exe (using windows cmd).ps1 (using powershell).sh (using bash).php (using php).py (using python).js (using node)In this article, the use of c# command line app shall be demonstrated.
Cr…