コード例 #1
0
        public ServiceProvider(
            //MotionDetectWrapper.MotionDetector motionDetector,
            FaceSearchWrapper.FaceSearch faceSearcher,
            Damany.Component.ICamera camera)
        {
            //             if (motionDetector == null)
            //                 throw new ArgumentNullException("motionDetector", "motionDetector is null.");
            if (faceSearcher == null)
                throw new ArgumentNullException("faceSearcher", "faceSearcher is null.");
            if (camera == null)
                throw new ArgumentNullException("camera", "camera is null.");

            //this.motionDetector = motionDetector;
            this.faceSearcher = faceSearcher;
            this.camera = camera;
        }
コード例 #2
0
        public ServiceProvider(
            //MotionDetectWrapper.MotionDetector motionDetector,
            FaceSearchWrapper.FaceSearch faceSearcher,
            Damany.Component.ICamera camera)
        {
//             if (motionDetector == null)
//                 throw new ArgumentNullException("motionDetector", "motionDetector is null.");
            if (faceSearcher == null)
            {
                throw new ArgumentNullException("faceSearcher", "faceSearcher is null.");
            }
            if (camera == null)
            {
                throw new ArgumentNullException("camera", "camera is null.");
            }


            //this.motionDetector = motionDetector;
            this.faceSearcher = faceSearcher;
            this.camera       = camera;
        }