// I guess if you really want to try a Verify that might fail and catch // the exception, then the AssumeValidToken won't happen in that case. public void Verify(TParams theParams, string tokenValue) { RawVerifyWrapper(theParams, tokenValue); // I'm not sure this is necessary; hopefully it won't hurt. VProgram_API.Assert(tokenValue != null); VProgram_API.AssumeValidToken(tokenValue, theParams); }
public string Generate(TParams theParams) { var tokenValue = RawGenerateWrapper(theParams); VProgram_API.AssumeValidToken(tokenValue, theParams); return(tokenValue); }