protected override void InitializeRuntime()
        {
            PerformanceMonitor.Initialize();

            AddNetTcpBinding();

            if (MexHttpUrl != null)
            {
                ServiceMetadataBehavior mexBehaviour = new ServiceMetadataBehavior
                {
                    HttpGetEnabled = true,
                    HttpGetUrl     = MexHttpUrl
                };
                Description.Behaviors.Add(mexBehaviour);
            }
            base.InitializeRuntime();
        }
示例#2
0
 static ApplicationService()
 {
     PerformanceMonitor.Initialize();
 }