Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 15th, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. delphi - how to pass a parameter from the instantiator to a constructor in the spring4d dependency injection framework?
  2. GlobalContainer.RegisterType<TUserProcessor>.Implements<IUserUpgrader>.
  3. AsTransient.DelegateTo(
  4.     function: TUserProcessor
  5.     begin
  6.       Result := TUserProcessor.Create(GetCurrentUser);
  7.     end
  8.   );
  9.        
  10. GlobalContainer.Resolve<IMathService>([FCurrentUser]);