public ProjectOxford() { var appSettings = ResourceLoader.GetForViewIndependentUse("AppSettings"); visionClient = new VisionServiceClient(appSettings.GetString("VISION_API_KEY")); faceClient = new FaceServiceClient(appSettings.GetString("FACE_API_KEY")); emotionClient = new EmotionServiceClient(appSettings.GetString("EMOTION_API_KEY")); }
public ImageCaptureService() { emotionServiceClient = ServiceLocator.GetRequiredService <IEmotionServiceClient>(); faceServiceClient = ServiceLocator.GetRequiredService <IFaceServiceClient>(); visionServiceClient = ServiceLocator.GetRequiredService <IVisionServiceClient>(); }
public EmotionController(IEmotionServiceClient emotionService) { _emotionService = emotionService; }