コード例 #1
0
        /// <summary>
        /// Sets the timestamp in a fluent way.
        /// </summary>
        /// <param name="interface">Interface type value.</param>
        /// <returns>Returns the <see cref="RoutineRecordItem"/> object.</returns>
        public static RoutineRecordItem WithInterface(this RoutineRecordItem value, InterfaceType @interface)
        {
            value.Interface = @interface;

            return(value);
        }
コード例 #2
0
        /// <summary>
        /// Sets the timestamp in a fluent way.
        /// </summary>
        /// <param name="timestamp">Timestamp value.</param>
        /// <returns>Returns the <see cref="RoutineRecordItem"/> object.</returns>
        public static RoutineRecordItem WithTimestamp(this RoutineRecordItem value, DateTimeOffset timestamp)
        {
            value.Timestamp = timestamp;;

            return(value);
        }
コード例 #3
0
        /// <summary>
        /// Sets the entity ID in a fluent way.
        /// </summary>
        /// <param name="entityId">Entity ID.</param>
        /// <returns>Returns the <see cref="RoutineRecordItem"/> object.</returns>
        public static RoutineRecordItem WithEntityId(this RoutineRecordItem value, Guid entityId)
        {
            value.EntityId = entityId;

            return(value);
        }