비고
이 콘텐츠는 Dynamics 365 Channel Integration Framework 버전 2.0에만 적용됩니다.
비고
세션 관리 API를 사용하면 Copilot Service 작업 영역 앱에서만 다중 세션 환경을 통합할 수 있습니다.
공급자에 대한 세션 식별자 배열을 반환합니다.
Syntax
Microsoft.CIFramework.getAllSessions().then(successCallback, errorCallback);
매개 변수
| 이름 | 유형 | 필수 | 설명 |
|---|---|---|---|
| success콜백 | 기능 | 아니오 | 약속이 해결될 때 호출 |
| error콜백 | 기능 | 아니오 | 약속이 거부될 때 호출 |
반환 값
공급자가 만들고 여전히 활성 상태인 세션 ID의 배열로 값을 사용하여 Promise를 사용합니다.
Example
Microsoft.CIFramework.getAllSessions().then(
function (result) {
// result will have array of session Ids, which are created by the provider and still at active state.
console.log(result)
},
function (error) {
// code handling for promise failure
console.log(error)
});