Beispiel #1
0
        /// <summary>
        ///     Converts the specified native work item.
        /// </summary>
        /// <param name="nativeWorkItem">The native work item.</param>
        /// <returns>INativeWorkItem.</returns>
        public INativeWorkItem Convert(ClrMd.NativeWorkItem nativeWorkItem)
        {
            if (nativeWorkItem == null)
            {
                return(null);
            }
            var item = new NativeWorkItemAdapter(this, nativeWorkItem);

            return(Cache.GetOrAdd <INativeWorkItem>(nativeWorkItem, () => item, () => item.Setup()));
        }
 public NativeWorkItemInformation(NativeWorkItem workItem)
 {
     this.workItem = workItem;
 }