private async Task<Tile> RefreshAsync() { var tile = await BuildAsync(); tile.BuiltUtc = DateTimeOffset.UtcNow; _cachedTile = tile; return tile; }
public StaticTileBuilder(string template, string title, string style, string size, Uri uri) { _tile = new Tile { TemplateName = template, Title = title, Style = style, Size = size, Link = uri }; }
protected override async Task<Tile> BuildAsync() { var data = IsValid ? await GetTileData() : Enumerable.Empty<TileContent>(); var tile = new Tile { Title = "Current Projects", Style = "github", Size = "large", Link = new Uri("https://github.com/rikkit"), Content = data }; return tile; }