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; }
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; }