/// <summary>
 ///     Initializes a new instance of the HDInsightAccessTokenCredential class.
 /// </summary>
 /// <param name="credential">The credentials to copy.</param>
 public HDInsightAccessTokenCredential(HDInsightAccessTokenCredential credential)
 {
     credential.ArgumentNotNull("credential");
     this.SubscriptionId = credential.SubscriptionId;
     this.AccessToken = credential.AccessToken;
     this.Endpoint = credential.Endpoint;
     this.DeploymentNamespace = credential.DeploymentNamespace;
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the HDInsightAccessTokenCredential class.
 /// </summary>
 /// <param name="credential">The credentials to copy.</param>
 public HDInsightAccessTokenCredential(HDInsightAccessTokenCredential credential)
 {
     credential.ArgumentNotNull("credential");
     this.SubscriptionId      = credential.SubscriptionId;
     this.AccessToken         = credential.AccessToken;
     this.Endpoint            = credential.Endpoint;
     this.DeploymentNamespace = credential.DeploymentNamespace;
 }