/// <summary> /// Initializes the VOMS proxy for use on the GRID. The connection must have already been configured so that /// the command voms-proxy-init works. /// </summary> /// <param name="connection">The configured SSH shell</param> /// <param name="GRIDUsername">The username to use to fetch the password for the voms proxy file</param> /// <param name="voms">The name of the voms to connect to</param> /// <param name="dumpOnly">Only print out proposed commands</param> /// <returns>Connection on which the grid is setup and ready to go</returns> public static ISSHConnection VomsProxyInit(this ISSHConnection connection, string voms, Func <bool> failNow = null, bool dumpOnly = false) { return(connection.VomsProxyInitAsync(voms, failNow, dumpOnly) .WaitAndUnwrapException()); }