private static Task Run(this IOrchardAppHost appHost, Func <IWorkContextScope, Task> process, string shellName, bool wrapInTransaction) { if (wrapInTransaction) { return(appHost.RunInTransaction(process, shellName)); } else { return(appHost.Run(process, shellName)); } }
public static Task RunInTransaction(this IOrchardAppHost appHost, Func <IWorkContextScope, Task> process) { return(appHost.RunInTransaction(process, ShellSettings.DefaultName)); }