コード例 #1
0
        /// <summary>
        /// Creates a <see cref="ObjVerExTaskQueueDirective"/>
        /// representing the provided <paramref name="objVer"/>.
        /// </summary>
        /// <param name="objVer">The object version to represent.</param>
        /// <returns>The task queue directive for the supplied object version.</returns>
        public static ObjVerExTaskQueueDirective FromObjVer(ObjVer objVer)
        {
            // Sanity.
            if (null == objVer)
            {
                throw new ArgumentNullException(nameof(objVer));
            }

            return(new ObjVerExTaskQueueDirective()
            {
                ObjVerEx = objVer.ToString(parsable: true)
            });
        }
コード例 #2
0
 public ObjVerExTaskDirective(ObjVer objVer, string displayName = null)
 {
     this.ObjVerEx = objVer?.ToString(parsable: true)
                     ?? throw new ArgumentNullException(nameof(objVer));
     this.DisplayName = displayName;
 }