Skip to content

Instantly share code, notes, and snippets.

public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(config => config.AddUserSecrets(Assembly.GetExecutingAssembly()))
.ConfigureServices((hostContext, services) =>
{
services.AddHostedService<Worker>();
});
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureServices((hostContext, services) =>
{
services.AddHostedService<Worker>();
});
2019-11-08 14:13:45,778 [1] INFO MainWindow - id=3305067647154 spec=abl.jedi_consular.stealth #eff=7 isValid=true
2019-11-08 14:13:45,794 [1] INFO MainWindow - id=3305067647156 spec=abl.legacy.heroic_moment.heroic_moment #eff=3 isValid=true
2019-11-08 14:13:45,811 [1] INFO MainWindow - BlasTech Lethal Girdle - Distance: 301.374 (<0, 0, 0>)
2019-11-08 14:13:45,828 [1] INFO MainWindow - Common Medpac - Distance: 301.374 (<0, 0, 0>)
2019-11-08 14:13:45,844 [1] INFO MainWindow - id=3305067647158 spec=abl.player.res_companion #eff=2 isValid=true
2019-11-08 14:13:45,861 [1] INFO MainWindow - id=3305067647160 spec=abl.player.quick_travel_selection #eff=2 isValid=true
2019-11-08 14:13:45,878 [1] INFO MainWindow - id=3305067647162 spec=abl.player.exit_flashpoint #eff=2 isValid=true
2019-11-08 14:13:45,895 [1] INFO MainWindow - id=3305067647164 spec=abl.player.harvest.archaeology #eff=2 isValid=true
2019-11-08 14:13:45,911 [1] INFO MainWindow - id=3305067647166 spec=abl.jedi_consular.skill.infiltration.force_b
2019-11-08 13:57:11,526 [1] INFO MainWindow - Poi:Type: Vendor
2019-11-08 13:57:11,546 [1] INFO MainWindow - id=3305067647154 spec=abl.jedi_consular.stealth #eff=7 isValid=true
2019-11-08 13:57:11,564 [1] INFO MainWindow - id=3305067647156 spec=abl.legacy.heroic_moment.heroic_moment #eff=3 isValid=true
2019-11-08 13:57:11,580 [1] INFO MainWindow - id=3305067647158 spec=abl.player.res_companion #eff=2 isValid=true
2019-11-08 13:57:11,597 [1] INFO MainWindow - id=3305067647160 spec=abl.player.quick_travel_selection #eff=2 isValid=true
2019-11-08 13:57:11,613 [1] INFO MainWindow - id=3305067647162 spec=abl.player.exit_flashpoint #eff=2 isValid=true
2019-11-08 13:57:11,631 [1] INFO MainWindow - id=3305067647164 spec=abl.player.harvest.archaeology #eff=2 isValid=true
2019-11-08 13:57:11,647 [1] INFO MainWindow - id=3305067647166 spec=abl.jedi_consular.skill.infiltration.force_breach_shadow #eff=3 isValid=true
2019-11-08 13:57:11,847 [1] INFO MainWindow - IsPlatform: False, Position: <-59.3116, 150.9632, -
static string Display(object o) => o switch
{
Point { X: 0, Y: 0 } => "origin",
Point { X: var x, Y: var y } => $"({x}, {y})",
_ => "unknown"
};
static async Task Main(string[] args)
{
await foreach (var num in GenerateNumbersAsync())
{
Console.WriteLine(num);
}
Console.ReadLine();
}
// Generated by Fuzzlyn on 2018-06-03 16:15:22
// Seed: 1019504228635510285
// Reduced from 154.8 KB to 0.9 KB
// Debug: Outputs '10402227607262999317'
// Release: Throws 'System.NullReferenceException'
struct S0
{
public uint F0;
public char F1;
public int F2;
// This implementation is of rather poor quality - you should only use this class for debugging and testing purposes, and never for actual production code.
public class FileRepository<T> : IRepository<T>, IDisposable, IAsyncDisposable where T : class
{
private readonly ConcurrentQueue<T> _writeQueue = new ConcurrentQueue<T>();
private readonly ReaderWriterLockSlim _lock = new ReaderWriterLockSlim();
private readonly FileInfo _file;
private readonly CancellationTokenSource _cts = new CancellationTokenSource();
private readonly Task _writeTask;
public FileRepository(IOptions<FileRepositoryOptions> options)
package main
import (
"fmt"
"log"
"net/http"
)
var (
endPoint = "0.0.0.0:5080"
NAME: my-wordpress
LAST DEPLOYED: Mon Mar 25 11:36:28 2019
NAMESPACE: default
STATUS: DEPLOYED
RESOURCES:
==> v1/ConfigMap
NAME DATA AGE
my-wordpress-mariadb 1 0s
my-wordpress-mariadb-tests 1 0s