Monthly Archives: October 2012

C# Unique Number

Simple method for generating a unique numeric string in C#, logged here for future reference. The source is pretty self explanatory, on each itieration test the length of the random number, generate a new single character number and append to … Continue reading

Posted in .NET | Leave a comment

BizTalk BAM : Writing Event Data

Instrumenting a BizTalk application with BAM is easy. Simply create a new class library, add a reference to Microsoft.BizTalk.Bam.EventObservation.dll, and add a reference to Microsoft.BizTalk.Pipeline.dll to support the IPipelineContext and IBaseMessage parameters on the below sample “WriteEvent” method. In the … Continue reading

Posted in BizTalk Server | Leave a comment

ESB Toolkit : Resolver Cache

Below are the important code fragments you’ll need to implement caching in your custom resolvers. To enable the use of the resolverConfig section of the esb.config for a resolver you must implement a resolver that exposes a parameter of type … Continue reading

Posted in BizTalk Server | Leave a comment

ESB Toolkit : Custom Endpoint Resolver

Out of the box we get a stack of nice resolvers. STATIC and UDDI being the most popular. Recently I had a requirement to source my endpoint configuration from a custom SQL database. We have no SQL resolver with ESBT … Continue reading

Posted in BizTalk Server | 1 Comment

Visual Studio Intellisense works but assembly reference missing

In your project properties look at the Target .NET framework.  For example I just opened a project with a target framework of “.NET Framework 4.0” that referenced a project with a target framework of “.NET Framework 4.5”.  In this situation … Continue reading

Posted in .NET | Leave a comment

ESBT FTP Resolver Disabled Endpoint Configuration Properties

On the ESBT 2.1 itinerary design surface if creating an FTP resolver and selecting the endpoint configuration you’ll notice the username and password fields are always disabled. A work around is instead of clicking the “…” button to set the … Continue reading

Posted in BizTalk Server | Leave a comment

Escape XML characters…

I’ve used the System.Web namespace for escaping XML in the past, see below handy code fragment for an alternate approach…

Posted in .NET | Leave a comment