Ejemplo n.º 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);
 }
Ejemplo n.º 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));
        }