예제 #1
0
 /// <summary />
 public virtual Task<KeyPair> CreateKeyPairAsync(string name, KeyPairType? type = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     var keyPair = new KeyPairDefinition(name)
     {
         Type = type
     };
     return _computeApi.CreateKeyPairAsync<KeyPair>(keyPair, cancellationToken);
 }
예제 #2
0
        /// <summary />
        public virtual Task <KeyPair> CreateKeyPairAsync(string name, KeyPairType?type = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            var keyPair = new KeyPairDefinition(name)
            {
                Type = type
            };

            return(_computeApi.CreateKeyPairAsync <KeyPair>(keyPair, cancellationToken));
        }