Consuming a geoprocessing custom model in .NET
LicenseInitializer.cs
// Copyright 2012 ESRI
// 
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
// 
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
// 
// See the use restrictions.
// 

using System;
using ESRI.ArcGIS;

namespace GeoprocessingInDotNet2008
{
  internal partial class LicenseInitializer
  {
    public LicenseInitializer()
    {
      ResolveBindingEvent += new EventHandler(BindingArcGISRuntime);
      
      // TODO: Uncomment if implicit runtime binding (pre-10 version) is allowed
      // AllowImplicitRuntimeBinding = true;
    }

    void BindingArcGISRuntime(object sender, EventArgs e)
    {
       // TODO: Add ESRI.ArcGIS.RuntimeManager code to load target ArcGIS runtime here
    }
  }
}