public static void LogDataRelation(RelationLogEntry logEntry) { ILogger logger = create(logEntry.LogType); logEntry = (RelationLogEntry)prepareLogEntry(logEntry); logEntry = (RelationLogEntry)refineLogEntry(logEntry); logEntry.Desription = string.Format("A relationship between entity {0} of type '{1}' and entity {2} of type '{3}' is {4}.", logEntry.SourceObjectId, logEntry.SourceObjectType, logEntry.DestinationObjectId, logEntry.DestinationObjectType, logEntry.State); RelationLogDelegate dlgt = new RelationLogDelegate(logger.LogRelation); IAsyncResult ar = dlgt.BeginInvoke(logEntry, null, null); logger.LogRelation(logEntry); }
public static void LogDataRelation(string sourceObjectId, string sourceObjectType, string destinationObjectId, string destinationObjectType, CrudState state) { RelationLogEntry logEntry = new RelationLogEntry() { LogType = LogType.Relation, SourceObjectId = sourceObjectId, SourceObjectType = sourceObjectType, DestinationObjectId = destinationObjectId, DestinationObjectType = destinationObjectType, State = state, }; LogDataRelation(logEntry); }
public void LogRelation(RelationLogEntry logEntry) { throw new NotImplementedException(); }