Exemplo n.º 1
0
        public Task <RestoreObjectResult> InitiateRestoreAsync(string key, int days)
        {
            var request = new RestoreObjectRequest(client.Host, bucketName, key)
            {
                Days = days
            };

            return(client.RestoreObjectAsync(request));
        }
Exemplo n.º 2
0
        public Task <RestoreObjectResult> InitiateRestoreAsync(string name, int days)
        {
            #region Preconditions

            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            #endregion

            var request = new RestoreObjectRequest(client.Host, bucketName, name)
            {
                Days = days
            };

            return(client.RestoreObjectAsync(request));
        }