4. Windows Azure クラウド型PC監視サービス? Windows Azure Platform AppFabricService Bus End Point Web Role WCF WCF WCF Agent Tool Internet Explorer 監視対象PC (Agent起動) 監視用PC 26-Aug-10 @tnkhr01 4
5. AppFabric SDK V1.0EchoSample 今回はコレを ベースに 実装してみる Windows Azure Platform AppFabric Service Bus EndPoint Echo:「Hello Azure!」 Service.exe Client.exe http://www.microsoft.com/downloads/details.aspx?FamilyID=39856a03-1490-4283-908f-c8bf0bfad8a5 26-Aug-10 @tnkhr01 5 Return:「Hello Azure!」
11. Client/Program.cs (問題の箇所) // create the channel factory loading the configuration ChannelFactory<IEchoChannel> channelFactory = newChannelFactory<IEchoChannel> ("RelayEndpoint", newEndpointAddress(serviceUri)); // apply the Service Bus credentials channelFactory.Endpoint.Behaviors.Add(sharedSecretServiceBusCredential); // create and open the client channel IEchoChannelchannel = channelFactory.CreateChannel(); channel.Open(); … 26-Aug-10 @tnkhr01 11
13. Client/Program.cs (変更後) // create the channel factory loading the configuration NetTcpRelayBinding binding = new NetTcpRelayBinding(); binding.Name = "RelayEndpoint"; binding.MaxReceivedMessageSize = 819200; binding.MaxBufferSize = 819200; binding.ReaderQuotas.MaxStringContentLength = 819200; binding.ReaderQuotas.MaxNameTableCharCount = 819200; ChannelFactory<IEchoChannel> channelFactory = newChannelFactory<IEchoChannel> (binding, new EndpointAddress(serviceUri)); // apply the Service Bus credentials … 「msdnセキュリティに関するデータの考慮事項」は要確認 http://msdn.microsoft.com/ja-jp/library/ms733135.aspx 26-Aug-10 @tnkhr01 13
14. DEMO 26-Aug-10 @tnkhr01 14 Windows Azure Windows Azure Platform AppFabricService Bus End Point Web Role WCF PC電源入れたまま 外出してしまった! スリープに! WCF Agent ブラウザ 監視対象Win7 PC (Agent起動) ガラケー @tnkhr01