Interface IPinpointFileService
The Acuit Pinpoint file retrieval service.
public interface IPinpointFileService
Methods
RetrieveFile(string)
Retrieves a file from Acuit Pinpoint.
Stream RetrieveFile(string serverFileName)
Parameters
serverFileNamestringThe name of the file on the Acuit Pinpoint server.
Returns
Remarks
With Acuit Pinpoint versions 7.1.87 and later, serverFileName can include environment variables quoted with the percent sign
character (%).
Exceptions
- FaultException<TDetail>
serverFileNameis null.- FaultException<TDetail>
The
serverFileNameis an empty string, contains only white space, or contains one or more invalid characters.- FaultException<TDetail>
An I/O error occurred while opening the file.
- FaultException<TDetail>
serverFileNamespecified a directory.- FaultException<TDetail>
The Acuit Pinpoint server process does not have the required permission to read the file.
- FaultException<TDetail>
serverFileNameis in an invalid format.- CommunicationException
A communication error occurred.
- TimeoutException
A communication timeout error occurred.
RetrieveFileAsync(string)
Retrieves a file from Acuit Pinpoint.
Task<Stream> RetrieveFileAsync(string serverFileName)
Parameters
serverFileNamestringThe name of the file on the Acuit Pinpoint server.
Returns
Remarks
Once the operation completes, the Result property on the returned task object contains a Stream from which the file contents can be read.
With Acuit Pinpoint versions 7.1.87 and later, serverFileName can include environment variables quoted with the percent sign
character (%).
Exceptions
- FaultException<TDetail>
serverFileNameis null.- FaultException<TDetail>
The
serverFileNameis an empty string, contains only white space, or contains one or more invalid characters.- FaultException<TDetail>
An I/O error occurred while opening the file.
- FaultException<TDetail>
serverFileNamespecified a directory.- FaultException<TDetail>
The Acuit Pinpoint server process does not have the required permission to read the file.
- FaultException<TDetail>
serverFileNameis in an invalid format.- CommunicationException
A communication error occurred.
- TimeoutException
A communication timeout error occurred.