private const int DefaultStreamBufferSize = 1 << 20; // 1MB

        internal BlobStream(HealthRecordAccessor record, Blob blob)
        {
            _record  = record;
            _blob    = blob;
            _length  = blob.ContentLength;
            CanWrite = true;
        }
Beispiel #2
0
 internal ThingCollection(
     string name,
     HealthRecordAccessor record,
     ThingQuery query,
     IHealthVaultConnection healthVaultConnection)
 {
     Name       = name;
     Record     = record;
     Query      = query;
     Connection = healthVaultConnection;
 }
Beispiel #3
0
        /// <summary>
        /// Creates an instance of a HealthRecordAccessor object using
        /// the specified XML.
        /// </summary>
        ///
        /// <param name="connection">
        /// A connection for the current user.
        /// </param>
        ///
        /// <param name="navigator">
        /// The XML containing the record information.
        /// </param>
        ///
        /// <returns>
        /// A new instance of a HealthRecordAccessor object containing the
        /// record information.
        /// </returns>
        ///
        /// <exception cref="ArgumentNullException">
        /// The <paramref name="connection"/> or <paramref name="navigator"/>
        /// parameter is <b>null</b>.
        /// </exception>
        ///
        public static HealthRecordAccessor CreateFromXml(
            IConnectionInternal connection,
            XPathNavigator navigator)
        {
            Validator.ThrowIfArgumentNull(connection, nameof(connection), Resources.PersonInfoConnectionNull);
            Validator.ThrowIfArgumentNull(navigator, nameof(navigator), Resources.ParseXmlNavNull);

            HealthRecordAccessor recordInfo =
                new HealthRecordAccessor(connection);

            recordInfo.ParseXml(navigator);
            return(recordInfo);
        }
 /// <summary>
 /// Creates a new instance of the <see cref="HealthRecordSearcher"/>
 /// class with the default parameters.
 /// </summary>
 ///
 /// <exception cref="ArgumentNullException">
 /// The <paramref name="record"/> parameter is <b>null</b>.
 /// </exception>
 ///
 internal HealthRecordSearcher(HealthRecordAccessor record)
 {
     Validator.ThrowIfArgumentNull(record, nameof(record), Resources.HealthRecordSearcherCtorArgumentNull);
     Record = record;
 }
 internal BlobStore(ThingBase item, HealthRecordAccessor record)
 {
     _item  = item;
     Record = record;
 }