This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Tweetter.Functions; | |
public class ContentfulEntryUpdater | |
{ | |
private readonly ContentfulApiOptions _options; | |
public ContentfulEntryUpdater(IOptions<ContentfulApiOptions> options) | |
{ | |
_options = options.Value; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Tweetter.Functions; | |
public class TweetterPoster | |
{ | |
private readonly TwitterApiOptions _options; | |
public TweetterPoster(IOptions<TwitterApiOptions> options) | |
{ | |
_options = options.Value; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Tweetter.Functions; | |
public class TweetterTrigger | |
{ | |
private readonly ContentfulApiOptions _options; | |
public TweetterTrigger(IOptions<ContentfulApiOptions> options) | |
{ | |
_options = options.Value; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text.Json; | |
using System.Threading.Tasks; | |
using Microsoft.Playwright; | |
namespace ConsoleApp | |
{ | |
class Program | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using Microsoft.Playwright; | |
namespace ConsoleApp | |
{ | |
class Program | |
{ | |
static async Task Main(string[] args) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var welcomeTextContainer = await page.QuerySelectorAsync($"text=Hello {email}"); | |
if (welcomeTextContainer == null) | |
{ | |
await page.ScreenshotAsync( | |
new PageScreenshotOptions | |
{ | |
Path = "screenshot.png" | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using FluentAssertions; | |
using Microsoft.Playwright; | |
using Xunit; | |
using Xunit.Abstractions; | |
using Xunit.Sdk; | |
namespace Asp.BlazorClient.Tests.End2End | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
using Microsoft.CodeAnalysis.Text; | |
namespace MediatorGenerator | |
{ | |
[Generator] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.nextjs = { | |
updateCursor: function (connectionId, x, y) { | |
const el = document.getElementById(connectionId); | |
if (el) { | |
el.style.transform = `translate3d(${x}px, ${y}px, 0px)`; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hubConnection.On<string, string, string>("ReceiveMessage", (connectionId, x, y) => { | |
JSRuntime.InvokeVoidAsync("nextjs.updateCursor", connectionId, x, y); | |
StateHasChanged(); | |
}); |
NewerOlder