TopShelfCustomer/TopShelfCustomer.iOS/AuthIOS.cs
/// <summary>
/// LogoutCurrentUser:
///
/// Asynchronout method to Logout any current Users.
/// </summary>
/// <returns> Task object describing the success of the SignOut() call </returns>


Asynchronout method to Logout any current Users.
Asynchronout method to Logout any current Users .
public string LogoutCurrentUser () {
            if ( Auth.DefaultInstance.CurrentUser != null ) {
                try {
                    Auth.DefaultInstance.SignOut( out Foundation.NSError result );
                    return "Success";
                } catch ( Exception ex ) {
                    Debug.WriteLine( ex.Message );
                    return "";
                }
            } else {
                return "";
            }
        }
public string LogoutCurrentUser ( ) { if ( Auth . DefaultInstance . CurrentUser != null ) { try { Auth . DefaultInstance . SignOut ( out Foundation . NSError result ) ; return " " ; } catch ( Exception ex ) { Debug . WriteLine ( ex . Message ) ; return " " ; } } else { return " " ; } }
LogoutCurrentUser:
LogoutCurrentUser :
Task object describing the success of the SignOut() call
Task object describing the success of the SignOut () call