public void Start(string url) { // Retrieve the interfaces list IList <LivePacketDevice> allDevices = LivePacketDevice.AllLocalMachine; AlbionEventHandler albionEventHandler = new AlbionEventHandler(url, partyRepository); albionPacketHandler = new AlbionPacketHandler(albionEventHandler); // Scan the list printing every entry for (int i = 0; i != allDevices.Count(); ++i) { DevicePrint(allDevices[i]); } if (allDevices.Count() < 1) { throw new NoDeviceFoundException(); } CapturingPackets(allDevices); }
public AlbionPacketHandler(AlbionEventHandler albionEventHandler) { this.albionEventHandler = albionEventHandler; }