Ejemplo n.º 1
0
        public PacketService(L2RPacketService L2RPacketLogger,         //DI should inject my Singleton instance here
                             BountyService BountyService,
                             SurveyService FortService,
                             PlayerService PlayerService,
                             KillService KillService,
                             DiscordSocketClient Discord,
                             IConfiguration config)
        {
            _L2RPacketLogger = L2RPacketLogger;
            _discord         = Discord;
            _bountyService   = BountyService;
            _fortService     = FortService;
            _playerService   = PlayerService;
            _killService     = KillService;
            _config          = config;

            _L2RPacketLogger.L2RPacketArrivalEvent += OnL2RPacketArrival;
            _L2RPacketLogger.StartCapture(InitializeDevice());
        }