public VaultService(ILogger <StashService> log, SessionContext userContext, IPlayerCollectionProvider playerCollectionProvider, IGamePathService gamePathResolver) { this.Log = log; this.userContext = userContext; this.GamePathResolver = gamePathResolver; this.PlayerCollectionProvider = playerCollectionProvider; }
public PlayerService( ILogger <PlayerService> log , SessionContext userContext , IPlayerCollectionProvider playerCollectionProvider , IStashProvider stashProvider , IGamePathService gamePathResolver , ITranslationService translationService ) { this.Log = log; this.userContext = userContext; this.PlayerCollectionProvider = playerCollectionProvider; this.GamePathResolver = gamePathResolver; this.TranslationService = translationService; }
/// <summary> /// Initializes a new instance of the VaultForm class. /// </summary> public VaultForm(IServiceProvider serviceProvider) { if (LicenseManager.UsageMode == LicenseUsageMode.Runtime) { this.ServiceProvider = serviceProvider; this.FontService = this.ServiceProvider.GetService <IFontService>(); this.UIService = this.ServiceProvider.GetService <IUIService>(); this.Database = this.ServiceProvider.GetService <IDatabase>(); this.ItemProvider = this.ServiceProvider.GetService <IItemProvider>(); this.PlayerCollectionProvider = this.ServiceProvider.GetService <IPlayerCollectionProvider>(); this.GamePathResolver = this.ServiceProvider.GetService <IGamePathService>(); this.titleFont = FontService.GetFontAlbertusMTLight(9.5F); InitForm(); } }