コード例 #1
0
        /// <summary>Validates that this object meets the validation criteria.</summary>
        /// <param name="eventListener">an <see cref="Microsoft.Azure.AzConfig.Runtime.IEventListener" /> instance that will receive validation
        /// events.</param>
        /// <returns>
        /// A <see cref="System.Threading.Tasks.Task" /> that will be complete when validation is completed.
        /// </returns>
        public async System.Threading.Tasks.Task Validate(Microsoft.Azure.AzConfig.Runtime.IEventListener eventListener)
        {
            await eventListener.AssertNotNull(nameof(Name), Name);

            await eventListener.AssertNotNull(nameof(Type), Type);

            await eventListener.AssertEnum(nameof(Type), Type, @"Microsoft.Azconfig/configurationStores");
        }
コード例 #2
0
        /// <summary>Validates that this object meets the validation criteria.</summary>
        /// <param name="eventListener">an <see cref="Microsoft.Azure.AzConfig.Runtime.IEventListener" /> instance that will receive validation
        /// events.</param>
        /// <returns>
        /// A <see cref="System.Threading.Tasks.Task" /> that will be complete when validation is completed.
        /// </returns>
        public async System.Threading.Tasks.Task Validate(Microsoft.Azure.AzConfig.Runtime.IEventListener eventListener)
        {
            await eventListener.AssertNotNull(nameof(_resource), _resource);

            await eventListener.AssertObjectIsValid(nameof(_resource), _resource);

            await eventListener.AssertObjectIsValid(nameof(Properties), Properties);
        }
コード例 #3
0
ファイル: Resource.cs プロジェクト: jimmyca15/az-testing
 /// <summary>Validates that this object meets the validation criteria.</summary>
 /// <param name="eventListener">an <see cref="Microsoft.Azure.AzConfig.Runtime.IEventListener" /> instance that will receive validation
 /// events.</param>
 /// <returns>
 /// A <see cref="System.Threading.Tasks.Task" /> that will be complete when validation is completed.
 /// </returns>
 public async System.Threading.Tasks.Task Validate(Microsoft.Azure.AzConfig.Runtime.IEventListener eventListener)
 {
     await eventListener.AssertNotNull(nameof(Location), Location);
 }