Ejemplo n.º 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());
        }
Ejemplo n.º 2
0
        /*--------------------------------------------------------------------------------------------*/
        private FabOauthAccess ExecuteOperation()
        {
            var op = new OauthAccessOperation();

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