private async Task ToggleAsync(StaticAsset asset, bool enabled) { asset.Enabled = enabled; await this.JsRuntime.InvokeVoidAsync( "App.CodeExecution.updateStaticAssets", this.SessionId, this.Scripts, this.Styles); }
private static StaticAsset CreateStaticAsset(string x, int order = -1) { var asset = new StaticAsset { Name = x, Path = GetWebPath(x), }; if (order >= 0) { asset.Order = order; } return(asset); }