internal ApplicationOperations(BatchClient parentBatchClient, IEnumerable <BatchClientBehavior> inheritedBehaviors) { _parentBatchClient = parentBatchClient; // set up the behavior inheritance InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, inheritedBehaviors); }
internal Utilities(BatchClient parentBatchClient, IEnumerable <BatchClientBehavior> baseBehaviors) { this.ParentBatchClient = parentBatchClient; // inherit the base behaviors InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, baseBehaviors); }
internal JobScheduleOperations(BatchClient parentBatchScheduler, IEnumerable <BatchClientBehavior> inheritedBehaviors) { this.ParentBatchClient = parentBatchScheduler; // set up the behavior inheritance InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, inheritedBehaviors); }
internal CertificateOperations(BatchClient batchClient, IEnumerable <BatchClientBehavior> inheritedBehaviors) { _parentBatchClient = batchClient; // inherit from instantiating parent InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, inheritedBehaviors); }
internal NodeFile(Models.NodeFile boundToThis, IEnumerable <BatchClientBehavior> inheritTheseBehaviors) { this.fileItemBox = new FileItemBox(boundToThis); // inherit from parent InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, inheritTheseBehaviors); }
internal TaskStateMonitor(Utilities parentUtilities, IEnumerable <BatchClientBehavior> baseBehaviors) { _parentUtilities = parentUtilities; // inherit from parent InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, baseBehaviors); }
/// <summary> /// Initializes a new instance of the <see cref="CloudJob"/> class. /// </summary> /// <param name='parentBatchClient'>The parent <see cref="BatchClient"/> to use.</param> /// <param name='baseBehaviors'>The base behaviors to use.</param> internal CloudJob( BatchClient parentBatchClient, IEnumerable <BatchClientBehavior> baseBehaviors) { this.propertyContainer = new PropertyContainer(); this.parentBatchClient = parentBatchClient; InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, baseBehaviors); }
internal Certificate( BatchClient parentBatchClient, Models.Certificate protocolObject, IEnumerable <BatchClientBehavior> baseBehaviors) { this.parentBatchClient = parentBatchClient; InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, baseBehaviors); this.propertyContainer = new PropertyContainer(protocolObject); }
internal ComputeNode( BatchClient parentBatchClient, string parentPoolId, Models.ComputeNode protocolObject, IEnumerable <BatchClientBehavior> baseBehaviors) { this.parentPoolId = parentPoolId; this.parentBatchClient = parentBatchClient; InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, baseBehaviors); this.propertyContainer = new PropertyContainer(protocolObject); }
/// <summary> /// Initializes a new instance of the <see cref="CloudTask"/> class. /// </summary> /// <param name="id">The id of the task.</param> /// <param name="commandline">The command line of the task.</param> /// <remarks>The newly created CloudTask is initially not associated with any task in the Batch service. /// To associate it with a job and submit it to the Batch service, use <see cref="JobOperations.AddTaskAsync(string, IEnumerable{CloudTask}, BatchClientParallelOptions, ConcurrentBag{ConcurrentDictionary{Type, IFileStagingArtifact}}, TimeSpan?, IEnumerable{BatchClientBehavior})"/>.</remarks> public CloudTask(string id, string commandline) { this.propertyContainer = new PropertyContainer(); // set initial conditions this.Id = id; this.CommandLine = commandline; // set up custom behaviors InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, null); }
/// <summary> /// Initializes a new instance of the <see cref="ComputeNodeUser"/> class. /// </summary> /// <param name='parentBatchClient'>The parent <see cref="BatchClient"/> to use.</param> /// <param name='baseBehaviors'>The base behaviors to use.</param> /// <param name='parentPoolId'>The parentPoolId.</param> /// <param name='parentNodeId'>The parentNodeId.</param> internal ComputeNodeUser( BatchClient parentBatchClient, IEnumerable <BatchClientBehavior> baseBehaviors, string parentPoolId, string parentNodeId) { this.propertyContainer = new PropertyContainer(); this.parentBatchClient = parentBatchClient; this.parentPoolId = parentPoolId; this.parentNodeId = parentNodeId; InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, baseBehaviors); }
/// <summary> /// Initializes a new instance of the <see cref="Certificate"/> class. /// </summary> /// <param name='parentBatchClient'>The parent <see cref="BatchClient"/> to use.</param> /// <param name='baseBehaviors'>The base behaviors to use.</param> /// <param name='data'>The base64-encoded raw certificate data (contents of the .pfx or .cer file or data from which the <see cref="Certificate"/> /// was created).</param> /// <param name='thumbprint'>The thumbprint of the certificate. This is a sequence of up to 40 hex digits.</param> /// <param name='thumbprintAlgorithm'>The algorithm used to derive the thumbprint.</param> /// <param name='certificateFormat'>The format of the certificate data.</param> /// <param name='password'>The password to access the certificate private key.</param> internal Certificate( BatchClient parentBatchClient, IEnumerable <BatchClientBehavior> baseBehaviors, string data, string thumbprint, string thumbprintAlgorithm, Common.CertificateFormat?certificateFormat = default(Common.CertificateFormat?), string password = default(string)) { this.propertyContainer = new PropertyContainer(); this.parentBatchClient = parentBatchClient; this.Data = data; this.Thumbprint = thumbprint; this.ThumbprintAlgorithm = thumbprintAlgorithm; this.CertificateFormat = certificateFormat; this.Password = password; InheritUtil.InheritClientBehaviorsAndSetPublicProperty(this, baseBehaviors); }