Exemplo n.º 1
0
        public static void Create(string host, Dictionary <string, string> requestParams, string method, DownloadListener listener)
        {
            SimpleConnector connector = new SimpleConnector();

            connector.SetServerName(host);
            connector.SetParams(requestParams);
            connector.OnRequestComplete += listener;
            if (method == SimpleConnector.METHOD_GET)
            {
                connector.SendGet();
            }
            else
            {
                connector.SendPost();
            }
        }