コード例 #1
0
 public StarshipCommandService(IStarshipCommandTransient transient,
                               IStarshipCommandScoped scoped,
                               IStarshipCommandSingleton singleton,
                               IStarshipCommandSingletonInstance singletonInstance)
 {
     LaunchTorpedoesTransient         = transient;
     LaunchTorpedoesScoped            = scoped;
     LaunchTorpedoesSingleton         = singleton;
     LaunchTorpedoesSingletonInstance = singletonInstance;
 }
コード例 #2
0
 public HomeController(StarshipCommandService commandService,
                       IStarshipCommandTransient firePhazorsTransient,
                       IStarshipCommandScoped raiseShieldsScoped,
                       IStarshipCommandSingleton warpSpeedSingleton,
                       IStarshipCommandSingletonInstance teleportSingletonInstance)
 {
     _torpedoService = commandService;
     _firePhazors    = firePhazorsTransient;
     _raiseShields   = raiseShieldsScoped;
     _warpSpeed      = warpSpeedSingleton;
     _teleport       = teleportSingletonInstance;
 }