public PropertyContainer(Models.AutoPoolSpecification protocolObject) : base(BindingState.Bound) { this.AutoPoolIdPrefixProperty = this.CreatePropertyAccessor( protocolObject.AutoPoolIdPrefix, nameof(AutoPoolIdPrefix), BindingAccess.Read | BindingAccess.Write); this.KeepAliveProperty = this.CreatePropertyAccessor( protocolObject.KeepAlive, nameof(KeepAlive), BindingAccess.Read | BindingAccess.Write); this.PoolLifetimeOptionProperty = this.CreatePropertyAccessor( UtilitiesInternal.MapEnum <Models.PoolLifetimeOption, Common.PoolLifetimeOption>(protocolObject.PoolLifetimeOption), nameof(PoolLifetimeOption), BindingAccess.Read | BindingAccess.Write); this.PoolSpecificationProperty = this.CreatePropertyAccessor( UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.Pool, o => new PoolSpecification(o)), nameof(PoolSpecification), BindingAccess.Read | BindingAccess.Write); }
/// <summary> /// Initializes a new instance of the PoolInformation class. /// </summary> /// <param name="poolId">The ID of an existing pool. All the tasks of /// the job will run on the specified pool.</param> /// <param name="autoPoolSpecification">Characteristics for a temporary /// 'auto pool'. The Batch service will create this auto pool when the /// job is submitted.</param> public PoolInformation(string poolId = default(string), AutoPoolSpecification autoPoolSpecification = default(AutoPoolSpecification)) { PoolId = poolId; AutoPoolSpecification = autoPoolSpecification; CustomInit(); }