using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;using System.ServiceModel.Channels; namespace ConsoleApplication10{ class Program { static void Main(string[] args) { EnumerateBindingElements(new BasicHttpBinding()); EnumerateBindingElements(new NetMsmqBinding()); EnumerateBindingElements(new WSHttpBinding()); Console.ReadKey(true); } static void EnumerateBindingElements(Binding binding) { Console.WriteLine("Binding : " + binding.GetType().Name); BindingElementCollection bindingElements = binding.CreateBindingElements(); foreach (BindingElement e in bindingElements) { Console.WriteLine(e.GetType().FullName); } } }}
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: