﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace PowerShellTools.Common.ServiceManagement.DebuggingContract
{
    [DataContract]
    public class DebuggerStoppedEventArgs
    {
        [DataMember]
        public bool BreakpointHit { get; set; }

        [DataMember]
        public string ScriptFullPath { get; set; }

        [DataMember]
        public int Line { get; set; }

        [DataMember]
        public int Column { get; set; }

        public DebuggerStoppedEventArgs()
        {
            this.BreakpointHit = false;
        }

        public DebuggerStoppedEventArgs(string script, int line, int column)
        {
            this.BreakpointHit = true;
            this.ScriptFullPath = script;
            this.Line = line;
            this.Column = column;
        }
    }
}
