Skip to content

v0.6.0

Choose a tag to compare

@mgrosperrin mgrosperrin released this 04 Jan 15:22

What's new ?

Add new converter for DirectoryInfo and FileInfo (#10)

You can now have a property of type System.IO.DirectoryInfo or System.IO.FileInfo that well be automatically be converted from the command line.

Change the interface ISampleCommand to an attribute (#9)

The interface MGR.CommandLineParser.Command.ISampleCommand (used to provide sample the Help command has been converted to the attribute MGR.CommandLineParser.Command.SampleCommandAttribute in order to avoid creation of the command to show the samples.

Rename ServiceResolverCommandActivator to DependencyResolverCommandActivator (#2)

The type MGR.CommandLineParser.ServiceResolverCommandActivator (a non-default implementation of MGR.CommandLineParser.ICommandActivator) has been renamed to MGR.CommandLineParser.DependencyResolverCommandActivator to match the name of the DependencyResolver.

Change registrying of dependencies (#3)

Register a dependency through the MGR.CommandLineParser.DefaultDependencyResolver.RegisterDependency method now takes a Func<Func<IDependencyResolverScope, T>> argument. The outer Func will be called everytime a new IDependencyResolverScope is created. The inner Func will be called everytime a service has been to be resolved for a particular scope.
Register a list of dependencies through the MGR.CommandLineParser.DefaultDependencyResolver.RegisterDependencies method now takes a Func<Func<IDependencyResolverScope, IEnumerable<T>>> argument. The Funcs wil be called in the same manner that for a single dependency.