コード例 #1
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;
        }
コード例 #3
0
 public NetHttpUriTemplate(WADLUtility.Url url, bool ignoreTrailingSlash)
     : base(url.PathAndQuery, ignoreTrailingSlash)
 { 
     this.url = url;
 }
コード例 #4
0
 public NetHttpUriTemplate(WADLUtility.Url url)
     : this(url, true)
 { 
   
 }
コード例 #5
0
 public NetHttpService(WADLUtility.Url baseUrl)
     : base(baseUrl)
     //: base(WADL.WADLUtility.Url.CreateUrl(baseUrl))
 {
     
 }