Exemplo n.º 1
0
 public InspectionScope(DkmClrInstructionAddress address, InspectionSession session)
 {
     InstructionAddress = address;
     SymModule          = address.ModuleInstance.Module;
     CurrentMethodToken = address.MethodId.Token;
     Session            = session;
 }
 public InspectionScope(DkmClrInstructionAddress address, InspectionSession session)
 {
     InstructionAddress = address;
     SymModule = address.ModuleInstance.Module;
     CurrentMethodToken = address.MethodId.Token;
     Session = session;
 }
        public static InspectionSession GetInstance(DkmInspectionSession dkmObject)
        {
            InspectionSession session = dkmObject.GetDataItem<InspectionSession>();
            if (session == null)
            {
                session = new InspectionSession();
                dkmObject.SetDataItem(DkmDataCreationDisposition.CreateNew, session);
            }

            return session;
        }
Exemplo n.º 4
0
        public static InspectionSession GetInstance(DkmInspectionSession dkmObject)
        {
            InspectionSession session = dkmObject.GetDataItem <InspectionSession>();

            if (session == null)
            {
                session = new InspectionSession();
                dkmObject.SetDataItem(DkmDataCreationDisposition.CreateNew, session);
            }

            return(session);
        }