class library cqrs