C# 클래스 BackgroundTasks.LightControllerVoiceCommandService

Handler for background Cortana interactions with Hue.
상속: IBackgroundTask
파일 보기 프로젝트 열기: Microsoft/Windows-appsample-huelightcontroller

공개 메소드들

메소드 설명
Run ( IBackgroundTaskInstance taskInstance ) : void

Entry point for the background task.

비공개 메소드들

메소드 설명
ChangeLightStateAsync ( ) : System.Threading.Tasks.Task

Handles the command to change the state of all the lights.

ChangeSpecificLightStateAsync ( ) : System.Threading.Tasks.Task

Handles the command to change the state of a specific light.

CreateCortanaResponse ( string message ) : VoiceCommandResponse

Helper method for creating a message for Cortana to speak and write to the user.

ExecutePhrase ( Light light, string phrase ) : System.Threading.Tasks.Task

Converts a phrase to a light command and executes it.

InitializeAsync ( AppServiceTriggerDetails triggerDetails ) : Task

Helper method for initalizing the voice service, bridge, and lights. Returns if successful.

SelectColorAsync ( ) : System.Threading.Tasks.Task

Handles an interaction with Cortana where the user selects from randomly chosen colors to change the lights to.

메소드 상세

Run() 공개 메소드

Entry point for the background task.
public Run ( IBackgroundTaskInstance taskInstance ) : void
taskInstance IBackgroundTaskInstance
리턴 void