コード例 #1
0
        /// <summary>
        /// Saves a domain object to the Data Relay infrastructure.
        /// </summary>
        /// <typeparam name="T">The domain type of the object to save, this type is inferred from the paramter passed in.</typeparam>
        /// <param name="putObject">The ICacheParameter object to save.</param>
        /// <returns>A <see cref="Future{T}"/> of the <see cref="RelayOutcome"/> of the save operation.  Will have a Value if successful, an error otherwise.</returns>
        public Future <RelayOutcome> PutObject <T>(T putObject) where T : ICacheParameter
        {
            byte[]   extendedId;
            DateTime?lastUpdatedDate;

            RelayMessage.GetExtendedInfo(putObject, out extendedId, out lastUpdatedDate);
            return(PutObject(putObject.PrimaryId, extendedId, putObject));
        }