Skip to content

Instantly share code, notes, and snippets.

View oguzhane's full-sized avatar
:shipit:
🚀

Oguzhan Ergin oguzhane

:shipit:
🚀
View GitHub Profile
@oguzhane
oguzhane / pipeline.cs
Last active January 22, 2018 12:48
deadly simple, robust pipeline in c#
public class Pipeline<T>
{
private IList<Func<Func<T, Task>, Func<T, Task>>> _middleware;
public Pipeline()
{
_middleware = new List<Func<Func<T, Task>, Func<T, Task>>>();
}
public Pipeline<T> Use(Func<Func<T, Task>, Func<T, Task>> middleware)
{

Keybase proof

I hereby claim:

  • I am oguzhane on github.
  • I am oguzhane (https://keybase.io/oguzhane) on keybase.
  • I have a public key ASBTaSlTu4uKcjpE7Gz_YrZilkqN7nhLJVw3oKRNtzOjfAo

To claim this, I am signing this object: