This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MapController : ApiController | |
{ | |
[Route("api/map/{id}")] | |
public object Get(int id) | |
{ | |
var uri = new Uri(ConfigurationManager.AppSettings["docdbUri"]); | |
var key = ConfigurationManager.AppSettings["docdbKey"]; | |
var dbName = ConfigurationManager.AppSettings["docdbDatabaseName"]; | |
var collName = ConfigurationManager.AppSettings["docdbCollName"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task ProcessEventsAsync(PartitionContext context, IEnumerable<EventData> messages) | |
{ | |
// configure REST client | |
var client = new HttpClient(); | |
client.BaseAddress = new Uri(ConfigurationManager.AppSettings["webUrl"]); | |
var save = false; | |
// process incoming messages | |
foreach (var msg in messages) |