private void Initialize()
        {
            _faceServiceClient    = new FaceServiceClient("API_KEY_HERE");
            _emotionServiceClient = new EmotionServiceClient("API_KEY_HERE");

            AdministrationVm = new AdministrationViewModel(_faceServiceClient);
            HomeVm           = new HomeViewModel(_faceServiceClient, _emotionServiceClient);
            LuisVm           = new LuisViewModel();
        }
示例#2
0
        /// <summary>
        /// Initialize function to create all API client objects and ViewModels
        /// </summary>
        private void Initialize()
        {
            _faceServiceClient           = new FaceServiceClient("FACE_API_KEY", "ROOT_URI");
            _speakerIdentificationClient = new SpeakerIdentificationServiceClient("API_KEY_HERE");

            AdministrationVm = new AdministrationViewModel(_faceServiceClient, _speakerIdentificationClient);
            HomeVm           = new HomeViewModel(_faceServiceClient, _speakerIdentificationClient);
            LuisVm           = new LuisViewModel();
            BingSearchVm     = new BingSearchViewModel();
        }
        private void Initialize()
        {
            _faceServiceClient           = new FaceServiceClient("API_KEY_HERE");
            _emotionServiceClient        = new EmotionServiceClient("API_KEY_HERE");
            _speakerIdentificationClient = new SpeakerIdentificationServiceClient("API_KEY_HERE");

            AdministrationVm = new AdministrationViewModel(_faceServiceClient, _speakerIdentificationClient);
            HomeVm           = new HomeViewModel(_faceServiceClient, _emotionServiceClient, _speakerIdentificationClient);
            LuisVm           = new LuisViewModel();
            BingSearchVm     = new BingSearchViewModel();

            EntityLinkingVm = new EntityLinkingViewModel();
        }