using Elsa.Studio.Components; using Microsoft.AspNetCore.Components; namespace Elsa.Studio.Branding; /// /// Provides default branding information for the application, including the application name, logo URL, and reverse logo URL. /// Implements the interface. /// public class DefaultBrandingProvider : IBrandingProvider { /// public virtual string AppName => $"Caspian Workflowframework {ToolVersion.GetDisplayVersion()}"; /// public virtual string LogoUrl => GetLogoUrl(false); /// public virtual string LogoReverseUrl => GetLogoUrl(true); private string GetLogoUrl(bool v) { return "_content/Elsa.Studio.Shell/img/icon.png"; } public virtual RenderFragment Branding => builder => { builder.OpenComponent(0, typeof(DefaultBranding)); builder.AddAttribute(1, "Provider", this); builder.CloseComponent(); }; }