public GetOrCreateFolderData(string systemName) { if (systemName == null) { throw new ArgumentNullException("systemName"); } SystemName = systemName; Properties = new ExtentionPropertyCollection(); }
public void CopyFrom(ExtentionPropertyCollection properties) { if (properties != null) { foreach (var property in properties) { Add(property); } } }
public GetOrCreateComponentData(string systemName, IComponentTypeControl componentTypeControl) { if (systemName == null) { throw new ArgumentNullException("systemName"); } if (componentTypeControl == null) { throw new ArgumentNullException("componentTypeControl"); } SystemName = systemName; ComponentTypeControl = componentTypeControl; Properties = new ExtentionPropertyCollection(); }
protected SendEventBase(IComponentControl componentControl, string typeSystemName) { if (componentControl == null) { throw new ArgumentNullException("componentControl"); } if (typeSystemName == null) { throw new ArgumentNullException("typeSystemName"); } ComponentControl = componentControl; TypeSystemName = typeSystemName; Properties = new ExtentionPropertyCollection(); }
public ApplicationErrorData CreateEventFromLog(IComponentControl componentControl, LogLevel level, Exception exception, string message, IDictionary <string, object> properties) { EventImportance importance; if (level == LogLevel.Fatal) { importance = EventImportance.Alarm; } else if (level == LogLevel.Warning || level == LogLevel.Error) { importance = EventImportance.Warning; } else if (level == LogLevel.Info) { importance = EventImportance.Success; } else { importance = EventImportance.Unknown; } ApplicationErrorData data; if (exception != null) { data = componentControl.CreateApplicationError(exception); if (data.Message != message) { data.Message = message + " : " + data.Message; } } else { data = componentControl.CreateApplicationError("CustomError", message); data.SetProperty(ExtentionPropertyName.Stack, Environment.StackTrace); } data.SetImportance(importance).SetProperty("FromLog", true); var propertiesCollection = new ExtentionPropertyCollection(properties); foreach (var property in propertiesCollection) { data.Properties.Add(property); } return(data); }
public LogInfo() { Properties = new ExtentionPropertyCollection(); }
public SendLogData() { Properties = new ExtentionPropertyCollection(); }
public ApplicationErrorException(string type, string message, Exception innerException) : base(message, innerException) { Type = type; Properties = new ExtentionPropertyCollection(); }
public SendUnitTestResultData() { Properties = new ExtentionPropertyCollection(); }
public LogMessage() { Properties = new ExtentionPropertyCollection(); }
public UpdateComponentData() { Properties = new ExtentionPropertyCollection(); }