public static bool CanInitWithRequest(NSUrlRequest request)
        {
            // SystemLogger.Log (SystemLogger.Module.PLATFORM, "# IPhoneNSUrlProtocol canInitWithRequest: " + request.Url.Host + ", path: " + request.Url.ToString());

            bool shouldHandle = true;              //custom iPhoneNSUrlProtocol will handle all requests by default

            if (request != null && request.Url != null)
            {
                String url = request.Url.ToString();

                //checking internal server status
                if (HttpServer.SingletonInstance != null)
                {
                    shouldHandle = !HttpServer.SingletonInstance.IsListening;
                }

                if (url.StartsWith("http://127.0.0.1:8080") && (url.Contains("/service/") || url.Contains("/service-async/")))
                {
                    if (!shouldHandle)
                    {
                        // SystemLogger.Log (SystemLogger.Module.PLATFORM, "# IPhoneNSUrlProtocol MANAGED SERVICE");
                        // add to managed service mapping
                        IPhoneServiceLocator.registerManagedService(url, "" + DateTime.Now.Ticks);
                    }
                }
            }

            return(shouldHandle);
        }