public CommandInterceptors(ISaveCommandInterceptor saveCommandInterceptor) : this() { Check.NotNull(saveCommandInterceptor, "saveCommandInterceptor"); SaveCommandInterceptor = saveCommandInterceptor; }
public virtual int Save(ISaveCommandInterceptor savingStrategy) { Check.NotNull(savingStrategy, "savingStrategy"); var retVal = CommandRepository.Save(savingStrategy); return(retVal); }
public virtual async Task <int> SaveAsync(ISaveCommandInterceptor savingStrategy) { Check.NotNull(savingStrategy, "savingStrategy"); return(await Task <int> .Run(() => Save(savingStrategy))); }
public DefaultRepositoryInterceptors(ISaveCommandInterceptor saveCommandInterceptor) { Check.NotNull(saveCommandInterceptor, "saveCommandInterceptor"); SaveCommandInterceptor = saveCommandInterceptor; }
public virtual int Save(ISaveCommandInterceptor savingStrategy) { return(savingStrategy.Save(this, Save)); }