/// <summary>
        /// Override the base Initialize method for initializing the Service Binding
        /// </summary>
        /// <param name="homeDirectory"></param>
        /// <param name="parameters"></param>
        public override void Initialize(string homeDirectory, IDictionary <string, string> parameters)
        {
            base.Initialize(homeDirectory, parameters);

            // Set the maximum number of concurrent connections
            ServicePointManager.DefaultConnectionLimit = 64; // ?

            // Initialize Http Cache
            System.Web.HttpRuntime httpRT = new System.Web.HttpRuntime();

            Logging("AgilePointEasyAuth BasicHttpBindingFactory is being initialized.");
        }
Ejemplo n.º 2
0
 private static void EnsureHttpRuntime()
 {
     if (null == _httpRuntime)
     {
         try
         {
             // Monitor.Enter(typeof(AppMain));
             if (null == _httpRuntime)
             {
                 // Create an Http Content to give us access to the cache.
                 _httpRuntime = new System.Web.HttpRuntime();
             }
         }
         finally
         {
             //Monitor.Exit(typeof(AppMain));
         }
     }
 }