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 System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
using Newtonsoft.Json; |
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 System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using static System.Console; | |
namespace ConsoleApplication | |
{ |
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
タイトル | |
「Linux on Azure の世界」Microsoft Azure Linux Agent/Extensions概説、およびAADとの連携シナリオ | |
概要: | |
Azureに新規にデプロイされる仮想マシンのうちLinuxは50%に及ぶらしいのですが[1]、Linuxを動かす場合Microsoft Azure Linux Agent (waagnet)は必須であり、さらにAzure Linux Extensionsを活用することで、より便利な使い方ができるようになります。Azure Linux Agent や Linux Extensions についてはあまり情報がないのですが、これまでに調べた内容を共有したいと思います。加えて、Linux on AzureでAAD(Azure Active Directory)と連携させたいというケースがあると思います。OpenShiftといったサービスをOpenID Connectを使ってAADで認証する方法、またLDAPリポジトリとしてAADを使いたい場合にAAD DS(Azure Active Directory Domain Services)を使う方法などを紹介したいと思います。 | |
なお、スピーカーはRed Hat Enterprise Linux(RHEL)を中心に調査しています。極力Linux全般に適用できる内容にする予定ですが、動作確認などはRHELで行っていることをご了承ください。 | |
[1] http://japan.zdnet.com/article/35084409/ | |
スピーカー |
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 System.Reactive.Linq; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var timer = Observable.Timer(TimeSpan.Zero, TimeSpan.FromSeconds(2)) |
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 System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.TeamFoundation.Build.WebApi; | |
using Microsoft.VisualStudio.Services.Common; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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 System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.TeamFoundation.Build.WebApi; | |
using Microsoft.VisualStudio.Services.Common; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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 ZXing.Mobile; | |
public partial class MainPage : PhoneApplicationPage | |
{ | |
private readonly MobileBarcodeScanner scanner; | |
public MainPage() | |
{ | |
InitializeComponent(); |
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
internal abstract class RunningDocumentTableEvents : IDisposable, IVsRunningDocTableEvents | |
{ | |
private readonly IVsRunningDocumentTable rdt; | |
private readonly uint sinkCookie; | |
internal RunningDocumentTableEvents(IVsRunningDocumentTable rdt) | |
{ | |
this.rdt = rdt; | |
uint cookie; |
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
//usage | |
void Main() | |
{ | |
var slack = new SlackNotifier("https://xxx.slack.com/services/hooks/slackbot?token=<your_token>", "https://hooks.slack.com/services/xxx/xxx/xxxxx"); | |
slack.SendText("dev_null", "Test").GetAwaiter().GetResult(); | |
slack.PostMessageWithIconEmoji("A very important thing has occurred! <https://alert-system.com/alerts/1234|Click here> for details!", "dev-null", "bot", ":ghost:").GetAwaiter().GetResult(); | |
} | |
using System.Net.Http; | |
using System.Threading.Tasks; |
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 System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Windows.Security.Authentication.Web; | |
using AsyncOAuth; |