コード例 #1
0
        public LauncherPage(
            IComputerNameProvider computerNameProvider,
            ILauncherIdProvider launcherIdProvider,
            IHardwareIdProvider hardwareIdProvider,
            ILauncherConfigProvider launcherConfigProvider,
            IForgameAuthProvider forgameAuthProvider)
        {
            InitializeComponent();

            _launcherConfigProvider = launcherConfigProvider;
            _forgameAuthProvider    = forgameAuthProvider;

            var gamesConfigDataProvider = new GamesConfigCdnDataProvider();
            var gamesConfigParser       = new GamesConfigXmlParser();

            var gamesConfigProvider = new GamesConfigProvider(gamesConfigDataProvider, gamesConfigParser);

            Task.Run(gamesConfigProvider.Init);

            var gameInWindowsRegistrator = new GameInWindowsRegistrator();

            _gameManager = new GameManager(gameInWindowsRegistrator, gamesConfigProvider);

            var ws = new WebSocket(computerNameProvider, launcherIdProvider, hardwareIdProvider);

            _gameAuthProvider = new GameAuthProvider(ws);

            Load += LauncherPage_Load;
        }
コード例 #2
0
 public WebSocket(
     IComputerNameProvider computerNameProvider,
     ILauncherIdProvider launcherIdProvider,
     IHardwareIdProvider hardwareIdProvider)
 {
     _computerNameProvider = computerNameProvider;
     _launcherIdProvider   = launcherIdProvider;
     _hardwareIdProvider   = hardwareIdProvider;
 }
コード例 #3
0
 public ForgameAuthProvider(
     IComputerNameProvider computerNameProvider,
     ILauncherIdProvider launcherIdProvider,
     IHardwareIdProvider hardwareIdProvider)
 {
     _computerNameProvider = computerNameProvider;
     _launcherIdProvider   = launcherIdProvider;
     _hardwareIdProvider   = hardwareIdProvider;
 }
コード例 #4
0
ファイル: AesStorage.cs プロジェクト: Xanede/BnsLauncher
 public AesStorage(IComputerNameProvider computerNameProvider)
 {
     _computerNameProvider = computerNameProvider;
 }
コード例 #5
0
 public ComputerNameGreetingProvider(IComputerNameProvider computerNameProvider)
 {
     _computerNameProvider = computerNameProvider;
 }