コード例 #1
0
        public Task StartRestoreAsync(string restoreLocation, string databaseLocation, string databaseName = null, bool defrag = false)
        {
            RavenJObject restoreSettings;
            var          request = adminRequest.StartRestore(restoreLocation, databaseLocation, databaseName, defrag, out restoreSettings);

            return(request.WriteAsync(restoreSettings.ToString(Formatting.None)));
        }