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
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
... | |
<PropertyGroup> | |
<CopyAllFilesToSingleFolderForMSDeployDependsOn> | |
CustomCollectFiles; | |
$(CopyAllFilesToSingleFolderForMSDeployDependsOn); | |
</CopyAllFilesToSingleFolderForMSDeployDependsOn> |
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
describe("Una suite es una función", function() { | |
it("y una spec también es una función", function() { | |
expect(true).toBe(true); | |
}); | |
it("cada spec testea un caso", function() { | |
expect(false).not.toBe(true); | |
}); | |
}); |
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 System.Web; | |
using System.Web.Mvc; | |
using System.Web.Optimization; | |
using System.Web.Routing; | |
using Samples.App_Start; | |
namespace Samples | |
{ | |
public class MvcApplication : HttpApplication | |
{ |
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 System.Configuration; | |
using Microsoft.ApplicationInsights.Extensibility; | |
namespace Samples.App_Start | |
{ | |
public static class AppInsightsConfig | |
{ | |
public static void RegisterAppInsights() | |
{ | |
TelemetryConfiguration.Active.InstrumentationKey = |
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 System; | |
using Microsoft.ApplicationInsights.Channel; | |
using Microsoft.ApplicationInsights.DataContracts; | |
using Microsoft.ApplicationInsights.Extensibility; | |
namespace Samples | |
{ | |
public class My404Filter : ITelemetryProcessor | |
{ | |
private ITelemetryProcessor Next { get; set; } |
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
// Importamos la librería underscore.js | |
var _ = require('underscore'); | |
module.exports = function(context) { | |
// Usamos la librería underscore.js que importamos | |
var matched_names = _ | |
.where(context.bindings.myInput.names, {first: 'Juan'}); | |
// El resto del código de nuestra función | |
} |
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
// O se pueden incluir parámetros adicionales como variables de entrada | |
module.exports = function(context, miDisparador, miEntrada, miOtraEntrada) { | |
// la lógica de la función va aquí | |
}; |
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
// Se debe incluir el context, pero los otros argumentos son opcionales | |
module.exports = function(context) { | |
// Las variables de entrada adicionales pueden accederse en la propiedad arguments | |
if(arguments.length === 2) { | |
context.log('La función recibió 2 argumentos de entrada'); | |
} | |
}; |
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 System; | |
public static void Run(TimerInfo myTimer, TraceWriter log) | |
{ | |
log.Info($"Función con trigger por timer en C# ejecutada el {DateTime.Now}"); | |
} |
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
{ | |
"frameworks": { | |
"net46":{ | |
"dependencies": { | |
"Microsoft.Azure.Search": "2.0.4-preview" | |
} | |
} | |
} | |
} |
NewerOlder