protected ZabbixProxyServerBase(IWebConfiguration webConfiguration, IWebChannel webChannel, IRequestBodyBuilder requestBodyBuilder)
        {
            if (webConfiguration == null)
            {
                throw new ArgumentNullException("webConfiguration");
            }

            if (webChannel == null)
            {
                throw new ArgumentNullException("webChannel");
            }

            if (requestBodyBuilder == null)
            {
                throw new ArgumentNullException("requestBodyBuilder");
            }

            WebConfiguration   = webConfiguration;
            WebChannel         = webChannel;
            RequestBodyBuilder = requestBodyBuilder;
        }
示例#2
0
 public ZabbixUserProxyServer(IWebConfiguration webConfiguration, IWebChannel webChannel, IRequestBodyBuilder requestBodyBuilder) :
     base(webConfiguration, webChannel, requestBodyBuilder)
 {
 }
示例#3
0
 public ZabbixServerChecker(IWebChannel webChannel, IRequestBodyBuilder requestBodyBuilder, IWebConfiguration webConfiguration)
 {
     _webChannel         = webChannel;
     _requestBodyBuilder = requestBodyBuilder;
     _webConfiguration   = webConfiguration;
 }
示例#4
0
 public void AcceptChannelPrototype(IWebChannel channel)
 {
     //acceptedChannels.Add(channel);
 }
示例#5
0
 public void RejectChannelPrototype(IWebChannel channel)
 {
 }
示例#6
0
 public void AddChannelPrototype(IWebChannel channel)
 {
     channels.Add(channel);
     Console.WriteLine("new client " + (channels.Count - 1));
 }
示例#7
0
 /// <summary>
 /// Access数据库存储的新闻对象
 /// </summary>
 public AccessWebNews(int newsID, IWebChannel webChannel)
 {
     this.NewsID  = newsID;
     this.Channel = webChannel;
 }
示例#8
0
 /// <summary>
 /// Access数据库存储的新闻对象
 /// </summary>
 public AccessWebNews(int newsID, IWebChannel webChannel)
 {
     this.NewsID = newsID;
     this.Channel = webChannel;
 }
 public ZabbixGraphsProxyServer(IWebConfiguration webConfiguration, IWebChannel webChannel, IRequestBodyBuilder requestBodyBuilder, IServiceConfiguration serviceConfiguration)
     : base(webConfiguration, webChannel, requestBodyBuilder)
 {
     _serviceConfiguration = serviceConfiguration;
 }