Skip to content

Instantly share code, notes, and snippets.

View merken's full-sized avatar

Maarten Merken merken

View GitHub Profile
@merken
merken / Console.csproj
Created April 2, 2021 20:51
Console csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>
@merken
merken / Program.1.cs
Created April 2, 2021 20:46
Initial hello world
using System;
namespace ConsoleToWeb
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!"); // => This needs to be converted into a web app
}
@merken
merken / Program.cs
Last active March 30, 2021 12:35
FooService
using System;
using FuncR;
using Microsoft.Extensions.DependencyInjection;
namespace Your.First.Function
{
// We don't need no, implementation
public interface IFooService
{
string Foo(int numberOfFoos);
@merken
merken / LoggerProxy.cs
Created March 30, 2020 15:14
LoggerProxy.cs
using System;
using System.Reflection;
namespace MyApp
{
public class LoggerProxy : DispatchProxy
{
private object remote;
public LoggerProxy SetRemoteObject(object remote)
{
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.WindowsAzure.Storage.Table;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace TableStoragePlugin
{
using System;
using System.Data;
using System.Data.Common;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Prise.Plugin;
namespace TableStoragePlugin
{
[PluginBootstrapper(PluginType = typeof(TableStorageProductsRepository))]
using Contract;
using Prise.Plugin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TableStoragePlugin
{
[Plugin(PluginType = typeof(IProductsRepository))]
using System.Data.Common;
using Microsoft.Data.SqlClient;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Prise.Plugin;
using SQLPlugin.Configuration;
namespace SQLPlugin
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Contract;
using Microsoft.EntityFrameworkCore;
using Prise.Plugin;
namespace SQLPlugin
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Contract;
using Microsoft.EntityFrameworkCore;
using Prise.Plugin;
namespace SQLPlugin
{