public AuthenticationController(Settings settings, ISaveChanges unitOfWork, AuthenticationDao authenticationDao, OAuth2Client oAuth2Client) : base(settings, unitOfWork) { Claws.NotNull(() => authenticationDao); Claws.NotNull(() => oAuth2Client); this.authenticationDao = authenticationDao; this.oAuth2Client = oAuth2Client; }
protected ControllerBase(Settings settings, ISaveChanges unitOfWork) { Claws.NotNull(() => settings); Claws.NotNull(() => unitOfWork); this.settings = settings; this.unitOfWork = unitOfWork; }
public virtual async Task SaveChangesAsync() { ISaveChanges context = GetContextWithGuard(); await context.SaveChangesAsync(); }
public virtual void SaveChanges() { ISaveChanges context = GetContextWithGuard(); context.SaveChanges(); }
public ISaveChanges Context(ISaveChanges context) { _context = context; return(this); }