public static Cloud AfterDelete <TAVObject>(this Cloud cloud, EngineObjectHookDelegate <TAVObject> hookDelegate) where TAVObject : AVObject { cloud.UseHook(EngineHookType.AfterDelete, hookDelegate); return(cloud); }
public static Cloud BeforeSave <TAVObject>(this Cloud cloud, EngineObjectWithUserHookDelegate <TAVObject> hookDelegate) where TAVObject : AVObject { cloud.UseHook(EngineHookType.BeforeSave, hookDelegate); return(cloud); }
public static Cloud BeforeDelete(this Cloud cloud, string className, EngineObjectWithUserHookDelegate hookDelegate) { return(cloud.UseHook(className, EngineHookType.BeforeDelete, hookDelegate)); }
public static Cloud AfterDelete(this Cloud cloud, string className, EngineObjectWithUserHookDelegateSynchronous hookDelegate) { return(cloud.UseHook(className, EngineHookType.AfterDelete, hookDelegate)); }
public static Cloud AfterUpdate(this Cloud cloud, string className, EngineObjectHookDelegate hookDelegate) { return(cloud.UseHook(className, EngineHookType.AfterUpdate, hookDelegate)); }
public static Cloud BeforeDelete(this Cloud cloud, string className, EngineObjectHookDeltegateSynchronous hookDelegate) { return(cloud.UseHook(className, EngineHookType.BeforeDelete, hookDelegate)); }
/// <summary> /// Uses the extension functions. /// </summary> /// <returns>The extension functions.</returns> /// <param name="cloud">Cloud.</param> public static Cloud UseExtensionFunctions(this Cloud cloud) { return(cloud.Define <string>("_internal_extensions_get_domain", cloud.GetHostingUrl)); }
/// <summary> /// Use https redirect. /// </summary> /// <param name="cloud"></param> /// <returns></returns> public static Cloud UseHttpsRedirect(this Cloud cloud) { UsedHttpsRedirect = true; ProxyTrusted = true; return(cloud); }
/// <summary> /// Uses the log. /// </summary> /// <returns>The log.</returns> /// <param name="cloud">Cloud.</param> public static Cloud UseLog(this Cloud cloud) { toggleLog = true; return(cloud); }
/// <summary> /// Configs the cloud. /// </summary> /// <returns>The cloud.</returns> /// <param name="webHostBuilder">Web host builder.</param> /// <param name="cloud">Cloud.</param> public static IWebHostBuilder UseCloud(this IWebHostBuilder webHostBuilder, Cloud cloud) { webHostBuilder = BuildWebHost(webHostBuilder, (c) => { c = cloud; }); return(webHostBuilder); }
/// <summary> /// Start the specified cloud and webHostBuilder. /// </summary> /// <returns>The start.</returns> /// <param name="cloud">Cloud.</param> /// <param name="webHostBuilder">Web host builder.</param> public static Cloud Start(this Cloud cloud, IWebHostBuilder webHostBuilder) { webHostBuilder = BuildWebHost(webHostBuilder, (c) => { c = cloud; }); webHostBuilder.Build().Run(); return(cloud); }