Microsoft.R.Host.Client.Test.Stubs.RSessionCallbackStub.SaveFileAsync C# (CSharp) Method

SaveFileAsync() public method

public SaveFileAsync ( string remotePath, string localPath, byte data, CancellationToken cancellationToken ) : Task
remotePath string
localPath string
data byte
cancellationToken System.Threading.CancellationToken
return Task
        public Task<string> SaveFileAsync(string remotePath, string localPath, byte[] data, CancellationToken cancellationToken) {
            SaveFileCalls.Add(new Tuple<string, byte[]>(remotePath, data));
            SaveFileHandler?.Invoke(remotePath, data);
            return Task.FromResult(string.Empty);
        }
    }