public void CreateChannels(NetHttpChannelManager root) { foreach (TemplateConfigurationElement template in Templates) { root.InnerChannels.Add(template.CreateChannelManager(new WADLUtility.Url(BaseUri), root)); }; }
public void CreateChannels(NetHttpChannelManager root) { foreach (TemplateConfigurationElement template in Templates) { root.InnerChannels.Add(template.CreateChannelManager(new WADLUtility.Url(BaseUri), root)); } ; }
public NetHttpChannelManager CreateChannelManager(WADLUtility.Url baseUrl, NetHttpChannelManager parent) { NetHttpChannelManager channel = (NetHttpChannelManager)Activator.CreateInstance(System.Type.GetType(this.Type), new object[] { baseUrl }); channel.Parent = parent; foreach (TemplateConfigurationElement template in Templates) { channel.InnerChannels.Add(template.CreateChannelManager(channel.ChannelUrl, channel)); } return channel; }
public NetHttpChannelManager CreateChannelManager(WADLUtility.Url baseUrl, NetHttpChannelManager parent) { NetHttpChannelManager channel = (NetHttpChannelManager)Activator.CreateInstance(System.Type.GetType(this.Type), new object[] { baseUrl }); channel.Parent = parent; foreach (TemplateConfigurationElement template in Templates) { channel.InnerChannels.Add(template.CreateChannelManager(channel.ChannelUrl, channel)); } return(channel); }
internal static InstancingMode GetInstancingModeAttribute(this NetHttpChannelManager manager) { return(manager.GetType().GetCustomAttributes(typeof(NetHttpInstancingModeAttribute), true) .Cast <NetHttpInstancingModeAttribute>() .Select(attribute => attribute.Mode).DefaultIfEmpty(InstancingMode.PerCall).SingleOrDefault()); }