Skip to content

Instantly share code, notes, and snippets.

Avatar

Maarten Merken merken

View GitHub Profile
View Console.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>
@merken
merken / Program.1.cs
Created Apr 2, 2021
Initial hello world
View Program.1.cs
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 Mar 30, 2021
FooService
View Program.cs
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);
View LoggerProxy.cs
using System;
using System.Reflection;
namespace MyApp
{
public class LoggerProxy : DispatchProxy
{
private object remote;
public LoggerProxy SetRemoteObject(object remote)
{
View TableStorageProviderBase.cs
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
{
View TableStorageBootstrapper.cs
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))]
View TableStorageProductsRepository.cs
using Contract;
using Prise.Plugin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TableStoragePlugin
{
[Plugin(PluginType = typeof(IProductsRepository))]
View SqlPluginBootstrapper2.cs
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
{
View SqlProductsRepository.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Contract;
using Microsoft.EntityFrameworkCore;
using Prise.Plugin;
namespace SQLPlugin
{
View SqlProductsRepository.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Contract;
using Microsoft.EntityFrameworkCore;
using Prise.Plugin;
namespace SQLPlugin
{