Skip to content

Instantly share code, notes, and snippets.

Noriyuki TAKEI noriyukitakei

View GitHub Profile
@noriyukitakei
noriyukitakei / Functions.cs
Last active Apr 19, 2019
多分わかりやすいDurable Functions【番外編で紹介した目覚まし】
View Functions.cs
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
@noriyukitakei
noriyukitakei / Function1.cs
Last active Apr 19, 2019
多分わかりやすいDurable Functios【Durable Functionsを使う場合】
View Function1.cs
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using System.Xml.Linq;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Extensions.Logging;
namespace CalcurateBlogTaggedByAzureByDurableFunctions
@noriyukitakei
noriyukitakei / Functions.cs
Last active Apr 16, 2019
多分わかりやすいDurable Functios【Durable Functionsを使わない場合(Azure Functions)】
View Functions.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Linq;
using Microsoft.AspNetCore.Http;
@noriyukitakei
noriyukitakei / Program.cs
Last active Apr 16, 2019
多分わかりやすいDurable Functios【Durable Functionsを使わない場合(C#で書いたアプリ)】
View Program.cs
using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Threading;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Queue;
@noriyukitakei
noriyukitakei / Function.cs
Last active Apr 19, 2019
多分わかりやすいDurable Functions【Durable Functionsの簡単なサンプルコード】
View Function.cs
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
@noriyukitakei
noriyukitakei / function.cs
Created Feb 7, 2019
Azure FunctionsでToken Bindingを使って、Azure Active DirectoryによるOAuth認証をラクチンにする
View function.cs
using System;
using System.IO;
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;
@noriyukitakei
noriyukitakei / ConnectWithNoDBCP.java
Last active Jan 24, 2019
クラウドネイティブなアプリケーションでのデータベース利用について
View ConnectWithNoDBCP.java
public class Test {
public static void main(String[] args) {
int LOOP_COUNT = 10000;
long start = System.currentTimeMillis();
try {
for (int i = 0; i < LOOP_COUNT; i++) {
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/hoge", "user", "password");
PreparedStatement pstmt = conn.prepareStatement("SELECT 1");
@noriyukitakei
noriyukitakei / ConnectWithoutDBCP.java
Created Jan 24, 2019
クラウドネイティブなアプリケーションでのデータベース利用について
View ConnectWithoutDBCP.java
public class Test {
public static void main(String[] args) {
int LOOP_COUNT = 10000;
long start = System.currentTimeMillis();
try {
for (int i = 0; i < LOOP_COUNT; i++) {
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/hoge", "user", "password");
PreparedStatement pstmt = conn.prepareStatement("SELECT 1");
@noriyukitakei
noriyukitakei / Program.cs
Created Dec 26, 2018
.NET(C#)でのHttpClientクラスの挙動
View Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace HttpClientTest
{
class Program
@noriyukitakei
noriyukitakei / Program.cs
Last active Dec 26, 2018
.NET(C#)でのHttpClientクラスの挙動
View Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace HttpClientTest
{
class Program
You can’t perform that action at this time.