public HttpAuthRequestHandler()
        {
            layoutRoot = getLayoutRoot();
            if (layoutRoot == null)
            {
                throw new Exception("Unable to get current layout root. Is this a Cordova App?");
            }

            layoutPage = getApplicationPage();
            authDialog = new AuthenticationDialog();
            requestCredentialsTaskCompletionSource = new TaskCompletionSource <Credentials>();
        }
        public HttpAuthRequestHandler()
        {
            layoutRoot = getLayoutRoot();
            if (layoutRoot == null)
            {
                throw new Exception("Unable to get current layout root. Is this a Cordova App?");
            }

            layoutPage = getApplicationPage();
            authDialog = new AuthenticationDialog();
            requestCredentialsTaskCompletionSource = new TaskCompletionSource<Credentials>();
        }