GithubHelp home page GithubHelp logo

hlaueriksson / commandquery Goto Github PK

View Code? Open in Web Editor NEW
105.0 13.0 17.0 3.1 MB

Command Query Separation for 🌐ASP.NET Core ⚡AWS Lambda ⚡Azure Functions ⚡Google Cloud Functions

License: MIT License

C# 99.56% Batchfile 0.44%
cqs command-query dotnet csharp asp-net-core aws-lambda azure-functions google-cloud-functions

commandquery's Introduction

Hej! 👋

Freelance software developer crafting software FTW 👨‍💻

My name is Henrik Lau Eriksson 👨‍🦰 and I live in Stockholm, Sweden 📌

I work with:

I write code for the Web 🌐

- Usually backend 🐴
- Sometimes frontend 🦄

I like to work in a DevOps context ♾️

- In the "union of people, process and products" 💬

I prefer Continuous Deployment ♻️

- Release early and often ⏩
- Fail fast 💥

Things I find interesting:

- Cloud ☁
- Serverless ⚡
- JAMstack 📚

Things I have experience with:

- Agile 🐒
- Architecture 📐
- TDD / BDD / Specification by Example ✔️

Projects


I'm a daily PowerToys Run user 🗂️🔎

Here are some plugins that tickle my fancy:

And for a sprinkle of my own magic:

View example:

Need

  • Store things you need, but can't remember

I love emoji ❤️

Check out the full list of what’s supported on GitHub:

Are you a dotnet fan? Give my library a spin:

View example:
":tada: initial commit".Emojify(); // 🎉 initial commit
  • C#
<emoji>:tada: initial commit</emoji>
  • ASP.NET Core
<Emoji>:tada: initial commit</Emoji>
  • Blazor
emoji emojify :tada: initial commit
  • CLI

GEmojiSharp

  • PowerToys Run

Do you keep your commands and queries separated?

Get started with this RPC library of mine:

Support for:
  • AspNetCore 🌐
  • AWSLambda ⚡
  • AzureFunctions ⚡
  • GoogleCloudFunctions ⚡

Do you enjoy writing unit tests and are on the lookout for something new?

Check out this quirky little framework:

View example:
public class MoodTests : LoFuTest<MoodIdentifier>
{
    string _mood;

    [LoFu, Test]
    public void Identify_mood_on_mondays()
    {
        void given_the_current_day_is_monday()
        {
            var monday = new DateTime(2011, 2, 14);

            Use<ISystemClock>()
                .CurrentTime
                .Returns(monday);
        }

        void when_identifying_my_mood() =>
            _mood = Subject.IdentifyMood();

        void should_be_pretty_bad() =>
            _mood.Should().Be("Pretty bad");
    }
}

Do you need markup in the frontend?

Generate some HTML in the backend:

View example:
DOCTYPE() +
html(lang("en"),
    head(
        meta(charset("utf-8")),
        e.title("Markupolation"),
        meta(name("description"), content("Sample of how to use Markupolation")),
        meta(name("viewport"), content("width=device-width, initial-scale=1"))
    ),
    body(
        h1("Hello, World!"),
        p("This is ", mark(a.title("Markup with string interpolation"), "Markupolation"), " in action.")
    )
);

I have built my own URL shortener, and you can do it too ✂️🔗

Get started with this template repository:


Contact

Find out more about me:

Let's get in touch:

commandquery's People

Contributors

hlaueriksson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

commandquery's Issues

Command functionality

Hi, I have got acquainted with your source code and it is excellent and easy to use library. But for now, there is no opportunity to return result from command. Is it in plat to implement this functionality or no?

Register ICommandProcessor in .net core DI

I am having an issue to register ICommandProcessor in WorkerProcess .net core DI

stack trace:
System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: CommandQuery.ICommandProcessor Lifetime: Transient ImplementationType: CommandQuery.CommandProcessor': Unable to resolve service for type 'CommandQuery.ICommandTypeCollection' while attempting to activate 'CommandQuery.CommandProcessor'.)
---> System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: CommandQuery.ICommandProcessor Lifetime: Transient ImplementationType: CommandQuery.CommandProcessor': Unable to resolve service for type 'CommandQuery.ICommandTypeCollection' while attempting to activate 'CommandQuery.CommandProcessor'.
---> System.InvalidOperationException: Unable to resolve service for type 'CommandQuery.ICommandTypeCollection' while attempting to activate 'CommandQuery.CommandProcessor'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(Type serviceType, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, Type serviceType, Type implementationType, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, Type serviceType, CallSiteChain callSiteChain, Int32 slot)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceDescriptor serviceDescriptor, CallSiteChain callSiteChain)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.ValidateService(ServiceDescriptor descriptor)
--- End of inner exception stack trace ---
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.ValidateService(ServiceDescriptor descriptor)
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(IEnumerable1 serviceDescriptors, ServiceProviderOptions options) --- End of inner exception stack trace --- at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(IEnumerable1 serviceDescriptors, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.DefaultServiceProviderFactory.CreateServiceProvider(IServiceCollection containerBuilder)
at Microsoft.Extensions.Hosting.Internal.ServiceFactoryAdapter`1.CreateServiceProvider(Object containerBuilder)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at WorkerWithCommandProcessor.Program.Main(String[] args) in C:\Users\atran1\source\repos\WorkerWithCommandProcessor\WorkerWithCommandProcessor\Program.cs:line 15

How to reproduce:
fetch repo https://github.com/TNMephaGroup/WorkerWithCommandProcessor
run the solution

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.