Show / Hide Table of Contents

Class FileSource

Mono implementation of the FileSource class. It will use Mono's runtime to asynchronously fetch data from the network via HTTP or HTTPS requests.

Inheritance
System.Object
FileSource
Namespace:Mapbox.Mono
Assembly:Mapbox.Mono.dll
Syntax
public sealed class FileSource : object, IFileSource
Remarks

This implementation requires .NET 4.5 and later. The access token is expected to be exported to the environment as MAPBOX_ACCESS_TOKEN.

Methods

Request(String, Action<Response>)

Performs a request asynchronously.

Declaration
public IAsyncRequest Request(string url, Action<Response> callback)
Parameters
Type Name Description
System.String url

The HTTP/HTTPS url.

Action<Response> callback

Callback to be called after the request is completed.

Returns
Type Description
IAsyncRequest

Returns a IAsyncRequest that can be used for canceling a pending request. This handle can be completely ignored if there is no intention of ever canceling the request.

WaitForAllRequests()

Block until all the requests are processed.

Declaration
public void WaitForAllRequests()
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX