Ejemplo n.º 1
0
        public IExceptionRequest CreateExceptionRequest(IReferenceType referenceType, bool notifyCaught, bool notifyUncaught)
        {
            ReferenceType type = referenceType as ReferenceType;

            if ((type == null || !type.VirtualMachine.Equals(this.VirtualMachine)) && referenceType != null)
            {
                throw new VirtualMachineMismatchException();
            }

            var request = new ExceptionRequest(VirtualMachine, type, notifyCaught, notifyUncaught);

            _exceptionRequests.Add(request);
            return(request);
        }
Ejemplo n.º 2
0
        public IExceptionRequest CreateExceptionRequest(IReferenceType referenceType, bool notifyCaught, bool notifyUncaught)
        {
            ReferenceType type = referenceType as ReferenceType;
            if ((type == null || !type.VirtualMachine.Equals(this.VirtualMachine)) && referenceType != null)
                throw new VirtualMachineMismatchException();

            var request = new ExceptionRequest(VirtualMachine, type, notifyCaught, notifyUncaught);
            _exceptionRequests.Add(request);
            return request;
        }