public void Configure(object gwConfiguration)
 {
     WebServiceGatewayConfiguration config = (WebServiceGatewayConfiguration)gwConfiguration;
     baseUrl = config.BaseUrl;
     bindingPrefixes = new string[1] { 
         String.Format(@"http://+:{0}/", config.Port)
     };
     SetPasswordHash(config.Password);
 }
        public void Configure(object gwconfiguration)
        {
            WebServiceGatewayConfiguration cnf = (WebServiceGatewayConfiguration)gwconfiguration;

            _homepath        = cnf.HomePath;
            _baseurl         = cnf.BaseUrl;
            _bindingprefixes = new string[2] {
                String.Format(@"http://+:{0}/", cnf.Port),
                String.Format(@"https://+:{0}/", cnf.SslPort)
            };
            //
            SetPasswordHash(cnf.Password);
        }
Example #3
0
 public MIGService()
 {
     Interfaces = new Dictionary<string, MIGInterface>();
     //
     //tcpGateway = new TcpSocketGateway();
     //tcpGateway.ProcessRequest += tcpGateway_ProcessRequest;
     //
     webGateway = new WebServiceGateway();
     webGateway.ProcessRequest += webGateway_ProcessRequest;
     webServiceConfig = new WebServiceGatewayConfiguration()
     {
         Port = 80,
         HomePath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "html"),
         BaseUrl = "hg/html",
         Password = ""
     };
 }