Ejemplo n.º 1
0
        public ApiTask_CapturePacket API_CapturePacketAsync(WatchPacketType target, PacketDetectedHandler callback, string filter = "")
        {
            var obj = new ApiTask_CapturePacket(this, target, filter);

            if (callback != null)
            {
                obj.PacketDetected += callback;
            }

            obj.StartAsync();

            return(obj);
        }
Ejemplo n.º 2
0
 internal ApiTask_WaitPacket(ApiSandbox sandbox, ApiSandbox.WatchPacketType target, string filter = "")
 {
     sandbox_     = sandbox;
     capture_obj_ = new ApiTask_CapturePacket(sandbox, target, filter);
     capture_obj_.PacketDetected += OnPacketDetected;
 }