public NetHttpChannelManager(WADLUtility.Url baseUrl)
 {
     BaseUrl = baseUrl;
     rss = String.Empty;
     wadl = WADLUtility.GenerateWadl(this.GetType(), BaseUrl);
     WADLApplication application = WADLApplication.GetWADLApplication(this.GetType());
     ChannelUrl = WADLUtility.Url.CreateUrl(baseUrl, application.Name);
     InnerChannels = new List<NetHttpChannelManager>();
 }
Пример #2
0
        public NetHttpChannelManager(WADLUtility.Url baseUrl)
        {
            BaseUrl = baseUrl;
            rss     = String.Empty;
            wadl    = WADLUtility.GenerateWadl(this.GetType(), BaseUrl);
            WADLApplication application = WADLApplication.GetWADLApplication(this.GetType());

            ChannelUrl    = WADLUtility.Url.CreateUrl(baseUrl, application.Name);
            InnerChannels = new List <NetHttpChannelManager>();
        }
        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 NetHttpUriTemplate(WADLUtility.Url url, bool ignoreTrailingSlash)
     : base(url.PathAndQuery, ignoreTrailingSlash)
 { 
     this.url = url;
 }
 public NetHttpUriTemplate(WADLUtility.Url url)
     : this(url, true)
 { 
   
 }
 public NetHttpService(WADLUtility.Url baseUrl)
     : base(baseUrl)
     //: base(WADL.WADLUtility.Url.CreateUrl(baseUrl))
 {
     
 }