示例#1
0
        /*--------------------------------------------------------------------------------------------*/
        private static IApiResponse ExecuteAcc(IApiRequest pApiReq, string pGrantType, string pClientId,
                                               string pSecret, string pCode, string pRefresh, string pRedirUri)
        {
            Func <FabOauthAccess> getResp = (() => {
                var op = new OauthAccessOperation();
                return(op.Execute(pApiReq.OpCtx, new OauthAccessTasks(), pGrantType,
                                  pClientId, pSecret, pCode, pRefresh, pRedirUri));
            });

            var exec = new JsonExecutor <FabOauthAccess>(pApiReq, getResp);

            exec.OnException = OnAccessExecption;
            return(exec.Execute());
        }
示例#2
0
        /*--------------------------------------------------------------------------------------------*/
        private FabOauthAccess ExecuteOperation()
        {
            var op = new OauthAccessOperation();

            return(op.Execute(OpCtx, vTasks, vGrantType, vClientId, vSecret, vCode, vRefresh, vRedirUri));
        }
 /*--------------------------------------------------------------------------------------------*/
 private void DoExecute()
 {
     vExecuteResult = vOper.Execute(vMockOpCtx.Object, vMockTasks.Object, vGrantType,
                                    vClientId, vSecret, vCode, vRefresh, vRedirUri);
 }