Class CloudStorageClient
The base class for all cloud storage clients.
Inheritance
Namespace: FastReport.Cloud.StorageClient
Assembly: FastReport.dll
Syntax
public abstract class CloudStorageClient
Constructors
CloudStorageClient()
Initializes a new instance of the CloudStorageClient class.
Declaration
public CloudStorageClient()
Properties
Filename
Gets or sets the filename.
Declaration
protected string Filename { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
IsUserAuthorized
Gets or set the information is user authorized or not.
Declaration
public bool IsUserAuthorized { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ProxySettings
Gets or sets the proxy settings of a client.
Declaration
public CloudProxySettings ProxySettings { get; set; }
Property Value
| Type | Description |
|---|---|
| CloudProxySettings |
Methods
CreateMemoryStream(Stream)
Creates a MemoryStream instance using a Stream instance.
Declaration
protected MemoryStream CreateMemoryStream(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The Stream instance that should be converted. |
Returns
| Type | Description |
|---|---|
| System.IO.MemoryStream | The MemoryStream instance. |
PrepareToSave(Report, ExportBase)
Prepares report before it will be saved to cloud storage.
Declaration
protected MemoryStream PrepareToSave(Report report, ExportBase export)
Parameters
| Type | Name | Description |
|---|---|---|
| Report | report | The report template. |
| ExportBase | export | The export filter. |
Returns
| Type | Description |
|---|---|
| System.IO.MemoryStream | Memory stream that contains prepared report. |
SaveMemoryStream(MemoryStream)
Saves a memory stream to cloud.
Declaration
protected abstract void SaveMemoryStream(MemoryStream ms)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.MemoryStream | ms | The memory stream that should be saved. |
SaveReport(Report, ExportBase)
Saves the report to cloud storage.
Declaration
public void SaveReport(Report report, ExportBase export)
Parameters
| Type | Name | Description |
|---|---|---|
| Report | report | The report template that should be saved. |
| ExportBase | export | The export filter that should export template before. |
Exceptions
| Type | Condition |
|---|---|
| CloudStorageException |
SaveStream(Stream, String)
Saves the stream to cloud storage.
Declaration
public void SaveStream(Stream stream, string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | The stream that contains report. |
| System.String | filename | The filename in which stream will be saved in cloud. |