delphimvcframework/samples/services_injection/Services.RegistrationU.pas

22 lines
461 B
ObjectPascal
Raw Normal View History

unit Services.RegistrationU;
interface
uses
MVCFramework.Container;
procedure RegisterServices(Container: IMVCServiceContainer);
implementation
uses
Services.PeopleU, Services.InterfacesU, Services.ConnectionU;
procedure RegisterServices(Container: IMVCServiceContainer);
begin
Container.RegisterType(TPeopleService, IPeopleService);
2024-04-17 09:57:22 +02:00
Container.RegisterType(TConnectionService, IConnectionService, TRegistrationType.SingletonPerRequest)
end;
end.