C# Class Rock.Model.BinaryFileService

Data Access Service class for Rock.Model.BinaryFile objects.
Datei anzeigen Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
BeginGet ( AsyncCallback callback, HttpContext context, System.Guid fileGuid ) : IAsyncResult

Initiates an asynchronous get of the binary file specified by fileGuid

BeginGet ( AsyncCallback callback, HttpContext context, int fileId ) : IAsyncResult

Initiates an asynchronous get of the binary file specified by fileId

EndGet ( IAsyncResult asyncResult, HttpContext context ) : BinaryFile

Ends the get.

EndGet ( IAsyncResult asyncResult, HttpContext context, bool &requiresViewSecurity ) : BinaryFile

Ends the get.

Private Methods

Method Description
BeginGet ( AsyncCallback callback, HttpContext context, System.Guid fileGuid, int fileId ) : IAsyncResult

Initiates an asynchronous get of the binary file specified by fileId or fileGuid Intended to be used by an IHttpAsyncHandler

Method Details

BeginGet() public method

Initiates an asynchronous get of the binary file specified by fileGuid
public BeginGet ( AsyncCallback callback, HttpContext context, System.Guid fileGuid ) : IAsyncResult
callback AsyncCallback The callback.
context System.Web.HttpContext The context.
fileGuid System.Guid The file unique identifier.
return IAsyncResult

BeginGet() public method

Initiates an asynchronous get of the binary file specified by fileId
public BeginGet ( AsyncCallback callback, HttpContext context, int fileId ) : IAsyncResult
callback AsyncCallback The callback.
context System.Web.HttpContext The context.
fileId int The file identifier.
return IAsyncResult

EndGet() public method

Ends the get.
public EndGet ( IAsyncResult asyncResult, HttpContext context ) : BinaryFile
asyncResult IAsyncResult The asynchronous result.
context System.Web.HttpContext The context.
return BinaryFile

EndGet() public method

Ends the get.
public EndGet ( IAsyncResult asyncResult, HttpContext context, bool &requiresViewSecurity ) : BinaryFile
asyncResult IAsyncResult The asynchronous result.
context System.Web.HttpContext The context.
requiresViewSecurity bool if set to true [requires security].
return BinaryFile