コード例 #1
0
 public CheckInControllerScratch(IRepository repository, IUserContext userContext, IClock clock, IAchievementUnlocker achievementUnlocker, ISomeOtherService someOtherService)
 {
     this.repository          = repository;
     this.userContext         = userContext;
     this.clock               = clock;
     this.achievementUnlocker = achievementUnlocker;
     this.someOtherService    = someOtherService;
 }
コード例 #2
0
 public static MyClass Create(ISomeService serviceA, ISomeOtherService serviceB)
 {
     return(new MyClass(serviceA, serviceB));
 }
コード例 #3
0
 public OfferService(IUserServiceFactory userServiceFactory, ISomeOtherService someotherService)
 {
     _userServiceFactory = userServiceFactory;
     _someotherService   = someotherService;
 }
コード例 #4
0
 public SomeService(ISomeOtherService otherService)
 {
     this.otherService = otherService;
 }
コード例 #5
0
ファイル: SomeComponent.cs プロジェクト: jucardi/Inject
 public SomeComponent([Qualifier("Bean2")] ISomeService someService, ISomeOtherService someOtherService)
 {
     this.someService      = someService;
     this.someOtherService = someOtherService;
 }
コード例 #6
0
 public UserService(ISomeOtherService someotherService)