예제 #1
0
        /// <summary>
        ///     Converts the specified work item.
        /// </summary>
        /// <param name="workItem">The work item.</param>
        /// <returns>IManagedWorkItem.</returns>
        public IManagedWorkItem Convert(ClrMd.ManagedWorkItem workItem)
        {
            if (workItem == null)
            {
                return(null);
            }
            var item = new ManagedWorkItemAdapter(this, workItem);

            return(Cache.GetOrAdd <IManagedWorkItem>(workItem, () => item, () => item.Setup()));
        }
 public ManagedWorkItemInformation(ManagedWorkItem workItem)
 {
     this.workItem = workItem;
 }