Code & Samples


030638f

You’ve come to the right place! This is where you will find sample code written to help peers in their projects.
Furthermore, this page will list personal projects. Most of which are on Github and best of all I accept pull requests!

Brisebois.Azure.PowerShell

GitHub Repository

These are my personal Azure PowerShell tools. I am actively adding to them as I publish new blog posts.

For those who are wish to contribute bug fixes and new features, I will be happy to consider all pull requests and collaborate in order to integrate your generous contributions.

Get the code https://github.com/brisebois/Brisebois.Azure.PowerShell

Brisebois.WindowsAzure

Project Details

These are my personal Windows Azure tools. I am actively adding to them as I publish new blog posts.

This code does not come with any guaranties. Bugs are possible and I will be happy to fix bugs that are reported through the dedicated Issues page on the GitHub repository. Please keep in mind that work on this code is done on me personal time.

To install Brisebois.WindowsAzure, run the following command in the Package Manager Console

PM> Install-Package Brisebois.WindowsAzure

For those who are wish to contribute bug fixes and new features, I will be happy to consider all pull requests and collaborate in order to integrate your  generous contributions to the package available on Nuget.org.

Get the code

Windows Azure Blob Storage Service Backup & Restore Tool

Project Details

This is a tool uses Blob Snapshots in order to provide a means by which we can rollback if something do horribly wrong with our batch processes.

Get the code

Windows Azure Services With The Unity Application Block

This is a Demo project used to show how the Unity Application Block can be used to build Windows Azure Services without compromising testability.
Get the code

Entity Framework Many to Many Example

This sample code was written to demonstrate how to configure Code First many to many relationships.
Get the code

A Simple Windows Azure Logger

Project Details & now part of Brisebois.WindowsAzure

Contains a Logger that batches messages and persists them in Windows Azure Table Storage. Contains a Web MVC 4 project with a page that auto refreshes to display event log entries. Edit the cloud configurations to set your StorageConnectionString Logging in Windows Azure can be done though Windows Azure Diagnostics. This solutions collects a ton of detailed data that can be hard to parse through. I recently needed a close to real-time trace of what my Roles were doing. My current project has many instances with many independent services running in parallel, resulting in a challenge when I try to trace using Windows Azure Diagnostics. Log4Net and Enterprise Library offer amazing tools to accomplish what I’m after. But they do so with so much detail and data, that we often need to resort to parsing tools and third party applications to extract meaningful information. I needed something quick, lightweight and that didn’t cost too much to operate.

At first, I was trying to follow what my instances were up to using the Windows Azure Compute Emulator. This wasn’t what I was looking for, because local environments don’t run exactly like the production or staging environments on the cloud. I spent a few minutes thinking about logging and costs related to Windows Azure Storage transactions and came up with the solution described below.

Get the code

ASP.NET Web API CacheOutput

Project Details

A filter bringing caching options, similar to MVC’sOutputCacheAttribute” to Web API ApiControllers. This code was inspired by Filip W’s aspnetwebapi-outputcache. I found his blog post and started playing around with his code. I rapidly found myself asking for more flexibility and for a different behavior. I needed to cache my service responses until a specific moment in time. In my case, I need to cache until 17h45 every day.

This code has been pulled into filipw / AspNetWebApi-OutputCache and is available through Nuget, run the following command in the Package Manager Console.

PM> Install-Package Strathweb.CacheOutput -Pre

Get the code

Coded UI Test Demoware

Presentation Details

This code was written as a demo for a presentation. It is in no way production code.

  • The LoginWpfApplication project is strictly Demoware.
  • Use LogicCodedUITestProject to explore UIMaps and Coded UI Tests
Get the code

Silverlight Business Application Example

This code was written as a demo for a presentation about writing Silverlight Business applications using MVVM. This is in no way production code.

Get the code

Consuming REST Services from Silverlight Example

This code was written as a demo for a presentation about writing Silverlight Business which consume REST services. This is in no way production code.

Get the code

Trackbacks and Pingbacks:

  1. Celebrating .NET Microsoft MVPs | NCover - May 19, 2014

    […] MVP Alexandre is also a member of the Azure Community of Experts. When not on the road speaking, he works with others to make the most well informed decisions. He keeps up a list of code and samples to help others when they need it with a passion for technical and architectural aspects of Microsoft Azure solutions. Check out his list of resources at https://alexandrebrisebois.wordpress.com/code-samples/. […]

    Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.