Keith Dahlby has a good post on creating a fake SPContext. Here’s the link and the code NOTE: This is not production safe code – use at own risk… http://solutionizing.net/20... public static SPContext FakeSPContext(SPWeb contextWeb) { // Ensure HttpContext.Current if (HttpContext.Current == null) { HttpRequest request = new HttpRequest("", web.Url, ""); HttpContext.Current = new HttpContext(request, new HttpResponse(TextWriter.Nul... } // SPContext is based on SPControl.GetContextWeb(), ......
I wanted an ability to be able to simply time methods and write to a log/trace sink and a very simple approach that I ended up using was to provide a method that takes an Action delegate which would be the method that is to be timed. The following is what I came up with (this is my reminder…) class Program { static void Main(string[] args) { TestMethod1(); } private static void TestMethod1() { LoggingHelper.TimeThis("doing something", () => { Console.WriteLine("This is the Real Method Body"); ......
Matthew Kerner’s session at BUILD covers many of the patterns and approaches that a well designed and highly scalable solution can do to make the most efficient use of the platform. Truth is many of the areas Matthew covers should be for on Premise too – including use of Windows Azure CDN. At about ~30:00 in Matthew references one of my posts on Windows Azure CDN and using it with your Compute role (hosted service) as an CDN origin… ......
Nice table comparing Windows Azure Queues vs. Windows Azure AppFabric Service Bus – note the comment regarding in WAZ SDK 1.5 Queue message size is now 64KB
Of course, I like the name of the blog too.
Comparison of Windows Azure Storage Queues and Service Bus Queues « Microsoft Technologies Rocks !!!