Class CloudStorageClient
Namespace: FastReport.Olap.Cloud.StorageClient
Assembly: FastCube.Core.dll
Base class for cloud storage client.
public abstract class CloudStorageClient
Inheritance
Derived
DropboxStorageClient, FtpStorageClient, GoogleDriveStorageClient
Constructors
CloudStorageClient()
Initializes a new instance of the FastReport.Olap.Cloud.StorageClient.CloudStorageClient class.
public CloudStorageClient()
Properties
Filename
Gets or sets the filename.
protected string Filename { get; set; }
Property Value
IsUserAuthorized
Gets or set the information is user authorized or not.
public bool IsUserAuthorized { get; set; }
Property Value
ProxySettings
Gets or sets the proxy settings of a client.
public CloudProxySettings ProxySettings { get; set; }
Property Value
Methods
CreateMemoryStream(Stream)
Creates a MemoryStream instance using a Stream instance.
protected MemoryStream CreateMemoryStream(Stream stream)
Parameters
stream Stream
The Stream instance that should be converted.
Returns
The MemoryStream instance.
PrepareToSave(Cube, Slice, ExportBase)
Prepares report before it will be saved to cloud storage.
protected MemoryStream PrepareToSave(Cube cube, Slice slice, ExportBase export)
Parameters
cube Cube
The cube reference.
slice Slice
The slice reference.
export ExportBase
The export filter.
Returns
Memory stream that contains prepared report.
SaveCube(Cube, ExportBase)
Saves the slice to cloud storage.
public void SaveCube(Cube cube, ExportBase export)
Parameters
cube Cube
The slice reference that should be saved.
export ExportBase
The export filter that should export template before.
SaveMemoryStream(MemoryStream)
Saves a memory stream to cloud.
protected abstract void SaveMemoryStream(MemoryStream ms)
Parameters
ms MemoryStream
The memory stream that should be saved.
SaveSlice(Slice, ExportBase)
Saves the slice to cloud storage.
public void SaveSlice(Slice slice, ExportBase export)
Parameters
slice Slice
The slice reference that should be saved.
export ExportBase
The export filter that should export template before.
SaveStream(Stream, string)
Saves the stream to cloud storage.
public void SaveStream(Stream stream, string filename)
Parameters
stream Stream
The stream that contains slice.
filename string
The filename in which stream will be saved in cloud.