示例#1
0
        public void Publish(WebServiceContent content)
        {
            var combined = CombineAddress(content.Address, content.Method);

            _published.Remove(combined);
            _published.Add(combined, new WebServicePublished(content));
        }
示例#2
0
文件: LaraUI.cs 项目: rChavz/lara
 public static void Publish(WebServiceContent content)
 => DefaultApplication.PublishService(content);
示例#3
0
 /// <summary>
 /// Publishes a web service
 /// </summary>
 /// <param name="content">Web service settings</param>
 public void PublishService(WebServiceContent content)
 {
     content = content ?? throw new ArgumentNullException(nameof(content));
     _published.Publish(content);
 }
示例#4
0
 public WebServicePublished(WebServiceContent content)
 {
     Factory     = content.GetFactory();
     ContentType = content.ContentType;
 }