This file contains hidden or 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
"C:\Program Files\Java\jdk1.8.0_144\bin\java" -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1 -XX:+TraceBiasedLocking -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:c:\tmp\log.txt "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2\lib\idea_rt.jar=56229:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_144\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\sunjce_provider.j |
This file contains hidden or 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
Java HotSpot(TM) 64-Bit Server VM (25.144-b01) for windows-amd64 JRE (1.8.0_144-b01), built on Jul 21 2017 21:57:33 by "java_re" with MS VC++ 10.0 (VS2010) | |
Memory: 4k page, physical 16625680k(8021544k free), swap 19640336k(8455400k free) | |
CommandLine flags: -XX:InitialHeapSize=266010880 -XX:MaxHeapSize=4256174080 -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1 -XX:+TraceBiasedLocking -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:-UseLargePagesIndividualAllocation -XX:+UseParallelGC | |
0.608: [GC (Allocation Failure) [PSYoungGen: 65024K->7754K(75776K)] 65024K->7762K(249344K), 0.0025976 secs] [Times: user=0.00 sys=0.00, real=0.00 secs] | |
1.495: [GC (Allocation Failure) [PSYoungGen: 72778K->6919K(75776K)] 72786K->6935K(249344K), 0.0033721 secs] [Times: user=0.06 sys=0.02, real=0.00 secs] | |
2.257: [GC (Allocation Failure) [PSYoungGen: 71943K->6951K(75776K)] 71959K->6967K(249344K), 0.0017439 secs] [Times: user=0.00 sys=0.00, real=0.0 |
This file contains hidden or 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
Objects<Person>().FirstOrDefault(p => p.Name == "Roger"); | |
Objects<Person>().FirstOrDefault(p => p.Name != "Roger"); | |
Objects<Employee>().FirstOrDefault(p => p.Department.Company.Name == "Starcounter"); | |
Objects<Person>().FirstOrDefault(p => p.Name.Contains("oge")); | |
Objects<Person>().FirstOrDefault(p => !p.Name.Contains("oge")); | |
Objects<Person>().FirstOrDefault(p => p.Name.StartsWith("Ro")); | |
Objects<Person>().FirstOrDefault(p => p.Name.EndsWith("er")); | |
Objects<Person>().FirstOrDefault(p => p.Age > 0 && p.Age < 100); | |
Objects<Person>().FirstOrDefault(p => p.Name == null); | |
Objects<Person>().Sum(p => p.Age); |
This file contains hidden or 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 System.Diagnostics; | |
using System.Threading.Tasks; | |
using Pusher.ViewModels; | |
using Starcounter; | |
namespace Pusher | |
{ | |
class Program | |
{ |
This file contains hidden or 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 System.Diagnostics; | |
using System.Threading.Tasks; | |
using Pusher.ViewModels; | |
using Starcounter; | |
namespace Pusher | |
{ | |
class Program | |
{ |
This file contains hidden or 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 System.Reactive.Linq; | |
using System.Reactive.Subjects; | |
using System.Threading.Tasks; | |
using Starcounter; | |
namespace StarcounterRx | |
{ | |
class Program | |
{ |
This file contains hidden or 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
const EventGridClient = require("azure-eventgrid"); | |
const msRestAzure = require("ms-rest-azure"); | |
const uuid = require("uuid").v4; | |
const topicCreds = new msRestAzure.TopicCredentials( | |
"mytopickey" | |
); | |
const EGClient = new EventGridClient(topicCreds); | |
const topicEndpoint = "mytopic.westeurope-1.eventgrid.azure.net"; |
This file contains hidden or 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
/Users/rogerjohansson/.nuget/packages/microsoft.azure.webjobs.script.extensionsmetadatagenerator/1.0.1/build/Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets(20,5): warning : Assert Failure [/Users/rogerjohansson/Git/FunctionLabb/FunctionLabb.csproj] | |
/Users/rogerjohansson/.nuget/packages/microsoft.azure.webjobs.script.extensionsmetadatagenerator/1.0.1/build/Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets(20,5): warning : Expression: [Recursive resource lookup bug] [/Users/rogerjohansson/Git/FunctionLabb/FunctionLabb.csproj] | |
/Users/rogerjohansson/.nuget/packages/microsoft.azure.webjobs.script.extensionsmetadatagenerator/1.0.1/build/Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets(20,5): warning : Description: Infinite recursion during resource lookup within System.Private.CoreLib. This may be a bug in System.Private.CoreLib, or potentially in certain extensibility points such as assembly resolve events or CultureInfo names. Resource name: IO_FileLoad [/U |
This file contains hidden or 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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp2.1</TargetFramework> | |
<AzureFunctionsVersion>v2</AzureFunctionsVersion> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.26" /> | |
</ItemGroup> | |
<ItemGroup> | |
<None Update="host.json"> |
This file contains hidden or 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 System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.Http; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.Logging; | |
using Newtonsoft.Json; |