public WpfApplication(IServiceProvider service) { Application.Current.ShutdownMode = ShutdownMode.OnExplicitShutdown; Services = service; Container.Insecure = service; _blocker = service.GetService <IBlocker>(); LifecycleRegister(); }
/// <summary> /// コンストラクタ /// </summary> /// <param name="coolTime">発射毎のクールタイム(秒)</param> /// <param name="blocker">発射遮断オブジェクト</param> /// <param name="launcher">実発射オブジェクト</param> /// <param name="timer">時間提供オブジェクト</param> public GunShooter( float coolTime, IBlocker blocker, ILauncher launcher, ITimer timer) { _coolTime = coolTime; _blocker = blocker; _launcher = launcher; _timer = timer; }
public IdentityAuthorizationInterceptor(IIdentityAuthorizationService service, IBlocker blocker) { _service = service; Blocker = blocker; }
public ClientCredentialAuthorizationInterceptor(IClientCredentialAuthorizationService service, IBlocker blocker) { _service = service; Blocker = blocker; }