Pandora.Fluent.GenericServiceCommand.Execute C# (CSharp) Method

Execute() public method

public Execute ( IComponentStore store ) : void
store IComponentStore
return void
        public void Execute(IComponentStore store)
        {
            foreach (var type in ForTypes)
            {
                var reg = new Registration
                              {
                                  Name = Name,
                                  Service = Service.MakeGenericType(new[] {type}),
                                  Implementor = Implementor.MakeGenericType(new[] {type})
                              };
                store.AddRegistration(reg);
            }
        }
GenericServiceCommand