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
{ | |
"name": "miindicedesearch", | |
"fields": [{ | |
"name": "id", | |
"type": "Edm.String", | |
"key": true, | |
"searchable": false | |
}, { | |
"name": "descripcion", | |
"type": "Edm.String", |
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
{ | |
"status":"running", | |
"lastResult": { | |
"status":"success", | |
"errorMessage":null, | |
"startTime":"2015-04-01T02:37:18.853Z", | |
"endTime":"2015-04-01T02:37:19.012Z", | |
"errors":[], | |
"itemsProcessed":2501, | |
"itemsFailed":0, |
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
GET https://[Nombre del servicio de Search].search.windows.net/indexers/[nombre del indexador]/status?api-version=[api-version] | |
api-key: [Key de administrador del servicio de Search] |
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
POST https://[Nombre del servicio de Search].search.windows.net/indexers?api-version=[api-version] | |
Content-Type: application/json | |
api-key: [Key de administrador del servicio de Search] |
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
{ | |
"name" : "miindexadordesearch", | |
"dataSourceName" : "miorigendedatosdocumentdb", | |
"targetIndexName" : "miindicedesearch", | |
"schedule" : { "interval" : "PT1H", "startTime" : "2015-04-01T00:00:00Z" } | |
} |
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
async void MainPage_Loaded(object sender, RoutedEventArgs e) | |
{ | |
await Autenticar(); | |
RefreshTodoItems(); | |
} |
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 MainPage() | |
{ | |
InitializeComponent(); | |
this.Loaded += MainPage_Loaded; | |
} |
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
private MobileServiceUser usuario; | |
private async System.Threading.Tasks.Task Autenticar() | |
{ | |
while (usuario == null) | |
{ | |
string mensaje; | |
try | |
{ | |
usuario = await App.MobileService | |
.LoginAsync(MobileServiceAuthenticationProvider.Facebook); |
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
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Table; | |
public object GetEntity(string partitionKey, string rowKey) | |
{ | |
CloudStorageAccount account = GetAccount(); | |
CloudTableClient cloudTableClient = account.CreateCloudTableClient(); | |
CloudTable table = cloudTableClient.GetTableReference("YourTableName"); | |
TableOperation retrieveOperation = TableOperation.Retrieve(partitionKey, rowKey); | |
TableResult retrievedResult = table.Execute(retrieveOperation); |
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
using Microsoft.WindowsAzure.ServiceRuntime; | |
using Microsoft.WindowsAzure.Storage; | |
public static CloudStorageAccount GetAccount() | |
{ | |
const string configName = "StorageConnectionString"; | |
string value = RoleEnvironment.GetConfigurationSettingValue(configName); | |
return CloudStorageAccount.Parse(value); | |
} |