/// <summary> /// Create a fully specified result /// </summary> /// <param name="type"></param> /// <param name="reason"></param> /// <param name="container"></param> /// <param name="itemName"></param> /// <param name="containerName"></param> public SyncResult(SyncResult.ItemType type, SyncResult.ReasonType reason, SyncResult.ContainerType container, string itemName, string containerName) { Item = type; Reason = reason; Context = container; Message = itemName; Container = containerName; }
/// <summary> /// Add a fully specified SyncResult to the collection /// </summary> /// <param name="type"></param> /// <param name="reason"></param> /// <param name="container"></param> /// <param name="itemName"></param> /// <param name="containerName"></param> /// <returns></returns> public SyncResult AddResult(SyncResult.ItemType type, SyncResult.ReasonType reason, SyncResult.ContainerType container, string itemName, string containerName) { SyncResult result = new SyncResult(type, reason, container, itemName, containerName); Results.Add(result); return(result); }