Exemple #1
0
        /// <inheritdoc/>
        protected override void CreateSnapshot(AtomFeed feed)
        {
            var snapshot = new Resource();

            BaseResource.Initialize <Resource, ConfigurationSetting>(snapshot, feed);
            this.Snapshot = (Resource)snapshot;
        }
Exemple #2
0
 /// <inheritdoc/>
 protected internal override void Initialize(AtomEntry entry, Version generatorVersion)
 {
     BaseResource.Initialize(this, entry, generatorVersion);
 }
Exemple #3
0
 /// <summary>
 /// Infrastructure. Initializes the current uninitialized
 /// <see cref= "ResourceCollection"/>.
 /// </summary>
 /// <remarks>
 /// This method may be called once to initialize a
 /// <see cref="ResourceCollection"/>
 /// instantiated by the default constructor. Override this method to provide
 /// special initialization code. Call this base method before initialization
 /// is complete.
 /// <note type="note">
 /// This method supports the Splunk client infrastructure and is not intended
 /// to be used directly from your code.
 /// </note>
 /// </remarks>
 /// <typeparam name="TResource">
 /// Type of the resource.
 /// </typeparam>
 /// <param name="feed">
 /// An object representing a Splunk atom feed response.
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="feed"/> is <c>null</c>.
 /// </exception>
 /// <exception cref="InvalidOperationException">
 /// The current <see cref="ResourceCollection"/> is already initialized.
 /// </exception>
 protected internal virtual void Initialize <TResource>(AtomFeed feed) where TResource : BaseResource, new()
 {
     BaseResource.Initialize <ResourceCollection, TResource>(this, feed);
 }
Exemple #4
0
 /// <summary>
 /// Infrastructure. Initializes the current uninitialized
 /// <see cref= "ResourceCollection"/>.
 /// </summary>
 /// <remarks>
 /// This method may be called once to initialize a
 /// <see cref="ResourceCollection"/>
 /// instantiated by the default constructor. Override this method to provide
 /// special initialization code. Call this base method before initialization
 /// is complete.
 /// <note type="note">
 /// This method supports the Splunk client infrastructure and is not intended
 /// to be used directly from your code.
 /// </note>
 /// </remarks>
 /// <param name="feed">
 /// An object representing a Splunk atom feed response.
 /// </param>
 /// <seealso cref="M:Splunk.Client.BaseResource.Initialize(AtomFeed)"/>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="feed"/> is <c>null</c>.
 /// </exception>
 /// <exception cref="InvalidOperationException">
 /// The current <see cref="ResourceCollection"/> is already initialized.
 /// </exception>
 protected internal override void Initialize(AtomFeed feed)
 {
     BaseResource.Initialize <ResourceCollection, Resource>(this, feed);
 }