Skip to content

mikeminutillo/conventional

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conventional

Conventional is a library for adding type-based conventions to you projects. The simplest way to add the library to your project is with Nuget:

Install-Package Conventional

Once installed you need to define some Conventions and then Configure the conventions engine:

class Services : IConvention {
    public bool Matches(Type t) {
        return t.Namespace.Contains("Services");
    }
}

//... during app start up
Conventions.Configure(c => {
    c.Install<Services>(t => IoC.RegisterService(t));

    c.Scan("MyProject.Services").For<Services>();
    c.ScanThisAssembly().For<Services>();
});

See https://github.com/wolfbyte/conventional/wiki for more info

About

simple library to handle assembly scanning and applying conventions based on type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages