You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
477 B
16 lines
477 B
using Autofac;
|
|
using VersionControl.Wrappers;
|
|
|
|
namespace VersionControl;
|
|
|
|
public class VersionControlAutofacModule : Module
|
|
{
|
|
protected override void Load(ContainerBuilder builder)
|
|
{
|
|
builder.RegisterType<GitRepository>().As<IGitRepository>();
|
|
builder.RegisterType<LibGit2SharpRepositoryStaticWrapper>().As<IRepositoryStaticWrapper>();
|
|
builder.RegisterType<GitRepositoryFactory>().As<IGitRepositoryFactory>();
|
|
base.Load(builder);
|
|
}
|
|
}
|