/// <summary> /// Returns a string representation of the value. /// </summary> /// <returns>A string representation of the value.</returns> public override string ToString() { return(_value.ToString()); }
public void EmitStart() { var document = new BsonDocument { { "Type", "ACTIVITY" }, { "ActivityType", _type.ToString() }, { "StartTime", _startTime }, { "StartDetails", _startDetails }, }; ActivityMonitor.ActivitiesCollection.InsertOne(document); _objectId = (ObjectId)document.GetValue("_id"); string msg = string.Format("log4net: START: _activity: {0} ({1})", _type.ToString(), _objectId.ToString()); if (_startDetails != string.Empty) { msg += string.Format(", details: {0}", _startDetails); } debugger.WriteLine(Debugger.DebugLevel.DebugLogic, msg); }