Ejemplo n.º 1
0
        public async Task TrackFailedAction(string action, string result, string method, string arguments)
        {
            RepositoryBranchUpdate update = await GetRepositoryBranchUpdate();

            update.Action       = action;
            update.ErrorMessage = result;
            update.Method       = method;
            update.Arguments    = arguments;
            update.Success      = false;
            await Context.SaveChangesAsync();
        }
Ejemplo n.º 2
0
        public async Task TrackSuccessfulAction(string action, string result)
        {
            RepositoryBranchUpdate update = await GetRepositoryBranchUpdate();

            update.Action       = action;
            update.ErrorMessage = result;
            update.Method       = null;
            update.Arguments    = null;
            update.Success      = true;
            await Context.SaveChangesAsync();
        }