Skip to content

Instantly share code, notes, and snippets.

View jwChung's full-sized avatar

Jin-Wook Chung jwChung

View GitHub Profile
@jwChung
jwChung / payment.cs
Last active May 7, 2022 02:45
Payment Example
using System;
using System.Collections.Generic;
namespace ClassLibrary3
{
public class Program
{
public static void Main(string[] args)
{
var service = new PaymentService(
type Result<'a> =
| Success of 'a
| Failure of string list
module Result =
let map f xResult =
match xResult with
| Success x ->
@jwChung
jwChung / UserStore.cs
Created May 15, 2017 17:25
UserStore
public class UserStore :
UserStore<User, Role, string, UserLogin, UserRole, UserClaim>
{
private bool disposed;
public UserStore(DbContext context)
: base(context)
{
}
class Program
{
static void Main(string[] args)
{
var stopwatch = new Stopwatch();
stopwatch.Start();
RunParallelly().Wait();
stopwatch.Stop();