Ipop.SocialVPN.HttpInterface.Process C# (CSharp) Method

Process() protected method

protected Process ( string>.Dictionary request ) : string
request string>.Dictionary
return string
    protected string Process(Dictionary<string, string> request) {
      EventHandler process_event = ProcessEvent;
      string response = String.Empty;
      if (process_event != null) {
        try {
          process_event(request, EventArgs.Empty);
          response = request["response"];
        } catch (Exception e) {
          response = SocialUtils.ObjectToXml<string>(e.Message);
        }
      }

      if(request.ContainsKey("html")) {
        response = "<html><head><meta HTTP-EQUIV=\"REFRESH\" " +
          "content=\"0;url=html\" /></head></html>";
      }

      return response;
    }