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
/var/vcap.local/dea/apps/seroternode-0-6ac0e0e5c05575d5809e2138fc145d39/app/node_modules/azure/lib/services/serviceManagement/models/roleschema.json:2 | |
"RoleName": | |
^ | |
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
SyntaxError: Unexpected token : | |
at Module._compile (module.js:406:25) | |
at Object..js (module.js:417:10) |
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 QueuingManager() | |
{ | |
var jss = new JavaScriptSerializer(); | |
dynamic data = jss.Deserialize<dynamic>(WebConfigurationManager.AppSettings["VCAP_SERVICES"]); | |
//set values | |
string sb_oauth = data["mssb-1.0"]["credentials"]["sb_oauth"]; // 4446 | |
string sb_runtime_address = data["mssb-1.0"]["credentials"]["sb_runtime_address"]; // 9354 | |
string userName = data["mssb-1.0"]["credentials"]["username"]; |
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 static void SendMessage(string message) | |
{ | |
var msg = new BrokeredMessage(message); | |
MessagingFactory factory = Nested.instance.messagingFactory; | |
MessageSender msgSender = factory.CreateMessageSender(QueueName); | |
msgSender.Send(msg); | |
} | |
public static IEnumerable<string> ReceiveMessages(ushort messageCount) | |
{ |
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"?> | |
<configuration> | |
<configSections> | |
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> | |
<section name="microsoft.identityModel" type="Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> | |
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> | |
</configSections> | |
<appSettings> | |
<add key="webpages:Version" value="2.0.0.0" /> | |
<add key="webpages:Enabled" value="false" /> |
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"?> | |
<!-- | |
This configuration file is required if iisnode is used to run node processes behind | |
IIS or IIS Express. For more information, visit: | |
https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config | |
--> | |
<configuration> | |
<system.webServer> |
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
package goportable | |
import ( | |
"encoding/json" //encoding the response | |
"log" //writing logs | |
"net/http" | |
"strings" //flattening an array | |
"cloud.google.com/go/storage" //talking to cloud storage | |
"github.com/GoogleCloudPlatform/functions-framework-go/functions" //go middleware |