Beispiel #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;
        }
Beispiel #2
0
 public WebSocket(
     IComputerNameProvider computerNameProvider,
     ILauncherIdProvider launcherIdProvider,
     IHardwareIdProvider hardwareIdProvider)
 {
     _computerNameProvider = computerNameProvider;
     _launcherIdProvider   = launcherIdProvider;
     _hardwareIdProvider   = hardwareIdProvider;
 }
 public ForgameAuthProvider(
     IComputerNameProvider computerNameProvider,
     ILauncherIdProvider launcherIdProvider,
     IHardwareIdProvider hardwareIdProvider)
 {
     _computerNameProvider = computerNameProvider;
     _launcherIdProvider   = launcherIdProvider;
     _hardwareIdProvider   = hardwareIdProvider;
 }