コード例 #1
0
ファイル: HomeController.cs プロジェクト: bryan1201/GitRespo
        public ActionResult Index()
        {
            // Ref: http://www.asp.net/mvc/overview/getting-started/introduction/adding-a-view
            ViewBag.DeviceKey1 = "Device Key for Avatar01 = "
                                 + ProcessDevice.GetDeviceKey("Avatar01");

            ViewBag.DeviceKey2 = "Device Key for Avatar02 = "
                                 + ProcessDevice.GetDeviceKey("Avatar02");

            ViewBag.IothubConnectionString = ProcessDevice.GetIothubConnectionString();

            return(View());
        }