public void ConfigureContainer(IUnityContainer container) { // Could be used to register more types container.AddRice(fullPathToDll => new ModuleDependencyLoader(fullPathToDll)); container.RegisterSingleton <ISerializableFactory, ProtoSerializableFactory>(); container.RegisterSingleton <ISerializer, SerializerWrapper>(); }