Exemple #1
0
        public Dictionary <string, string> ToDictionary()
        {
            Dictionary <string, string> result = new Dictionary <string, string>();

            result[BridgeResourceFolder_PropertyName]  = BridgeResourceFolder;
            result[BridgeHost_PropertyName]            = BridgeHost;
            result[BridgePort_PropertyName]            = BridgePort.ToString();
            result[BridgeHttpPort_PropertyName]        = BridgeHttpPort.ToString();
            result[BridgeHttpsPort_PropertyName]       = BridgeHttpsPort.ToString();
            result[BridgeTcpPort_PropertyName]         = BridgeTcpPort.ToString();
            result[BridgeWebSocketPort_PropertyName]   = BridgeWebSocketPort.ToString();
            result[BridgeMaxIdleTimeSpan_PropertyName] = BridgeMaxIdleTimeSpan.ToString();
            result[UseFiddlerUrl_PropertyName]         = UseFiddlerUrl.ToString();

            return(result);
        }
        public Dictionary <string, string> ToDictionary()
        {
            Dictionary <string, string> result = new Dictionary <string, string>();

            result[BridgeResourceFolder_PropertyName]            = BridgeResourceFolder;
            result[BridgeHost_PropertyName]                      = BridgeHost;
            result[BridgePort_PropertyName]                      = BridgePort.ToString();
            result[BridgeHttpPort_PropertyName]                  = BridgeHttpPort.ToString();
            result[BridgeHttpsPort_PropertyName]                 = BridgeHttpsPort.ToString();
            result[BridgeTcpPort_PropertyName]                   = BridgeTcpPort.ToString();
            result[BridgeWebSocketPort_PropertyName]             = BridgeWebSocketPort.ToString();
            result[BridgeSecureWebSocketPort_PropertyName]       = BridgeSecureWebSocketPort.ToString();
            result[BridgeCertificatePassword_PropertyName]       = BridgeCertificatePassword;
            result[BridgeCertificateValidityPeriod_PropertyName] = BridgeCertificateValidityPeriod.ToString();
            result[BridgeMaxIdleTimeSpan_PropertyName]           = BridgeMaxIdleTimeSpan.ToString();
            result[UseFiddlerUrl_PropertyName]                   = UseFiddlerUrl.ToString();

            return(result);
        }