msos.CommandExecutionContext.WriteInfo C# (CSharp) Method

WriteInfo() public method

public WriteInfo ( string value ) : void
value string
return void
        public void WriteInfo(string value)
        {
            Printer.WriteInfo(value);
        }

Usage Example

Esempio n. 1
0
        private void PerformAutomaticAnalysis()
        {
            var threadToSwitchTo = _context.Runtime.ThreadWithActiveExceptionOrFirstThread();

            if (threadToSwitchTo.CurrentException != null)
            {
                _context.WriteInfo("The current thread has an exception; use !pe to view it.");
            }
            new SwitchThread()
            {
                ManagedThreadId = threadToSwitchTo.ManagedThreadId
            }.Execute(_context);

            if (_context.Runtime.OutOfMemoryExceptionOccurred)
            {
                _context.WriteInfo("There was an out-of-memory condition in this target:");
                var oomInfo = _context.Runtime.OutOfMemoryInformation;
                _context.WriteInfo("\tAn OOM occurred after GC {0} when trying to allocate {1}",
                                   oomInfo.GCNumber, oomInfo.AllocationSize.ToMemoryUnits());
                _context.WriteInfo("\t" + oomInfo.Reason);
            }
        }
All Usage Examples Of msos.CommandExecutionContext::WriteInfo