Lync ContextPackage - 将AppData传递给HTML App ... [英] Lync ContextPackage - Passing AppData to HTML App...
问题描述
我已经注册了Lync ContextPackage(见下文)
该应用程序是纯HTML,没有Silverlight,
我要传递一个特殊ID作为网页网址的一部分。
我认为appdata就是这样做的方法。
但是无法弄清楚如何设置这个befofe(或期间)打开应用程序
一个对话窗口扩展(我正在以编程方式进行)见下文)。
非常感谢任何指导。
[注册ContextPackage] =============
Windows注册表编辑器版本5.00
[HKEY_CURRENT_USER \Software\Microsoft \ Communmunicator] [HKEY_CURRENT_USER \Software \ Microsoft \ Communmunator \ContextPackages] [HKEY_CURRENT_USER \Software\Microsoft \Communicator \ContextPackages \ {00000000-0000-0000-0000-000000000001}]
$
" ExtensibilityWindowSize" = dword:00000001
" DefaultContextPackage" = dword:00000000
" ExternalURL" =" http://www.testapp.com/session/join?sessionId=%AppData% "
" InternalURL" =" http://www.tetsapp.com/session/join?sessionId=%AppData% "
" Name" =" ; TestApp"
[Opening ExtensibilityWindow] ===================
自动化自动化= LyncClient.GetAutomation();
$
LyncClient lyncClient = LyncClient.GetClient(false);
$
ConversationManager conversationManager = lyncClient.ConversationManager;
$
对话对话= conversationManager.Conversations [0];
$
ConversationWindow conversationWindow = automation.GetConversationWindow(conversation);
conversationWindow.BeginOpenExtensibilityWindow(" {00000000-0000-0000- 0000-000000000001}",&
ar =>
{
                    conversationWindow.EndOpenExtensibilityWindow(ar);
},b $ b null);
应用程序数据来自远程方。我认为你最好的选择是使用运行时注册来动态更改FQDN。
https://msdn.microsoft.com/en-us/library/office/jj933131.aspx
I have registered a Lync ContextPackage (see below)
The app is pure html, no Silverlight,
I to passing a special id as part of the url for the web page.
I am presuming that appdata is the way to do this.
But cant figure out how to set this befofe (or during) opening up the app as
a conversation window extension (which I am doing programmatically see below).
Any guidance would be much appreciated.
[Registering ContextPackage]=============
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Communicator][HKEY_CURRENT_USER\Software\Microsoft\Communicator\ContextPackages][HKEY_CURRENT_USER\Software\Microsoft\Communicator\ContextPackages\{00000000-0000-0000-0000-000000000001}]
"ExtensibilityWindowSize"=dword:00000001
"DefaultContextPackage"=dword:00000000
"ExternalURL"="http://www.testapp.com/session/join?sessionId=%AppData%"
"InternalURL"="http://www.tetsapp.com/session/join?sessionId=%AppData%"
"Name"="TestApp"
[Opening ExtensibilityWindow]===================
Automation automation = LyncClient.GetAutomation();
LyncClient lyncClient = LyncClient.GetClient(false);
ConversationManager conversationManager = lyncClient.ConversationManager;
Conversation conversation = conversationManager.Conversations[0];
ConversationWindow conversationWindow = automation.GetConversationWindow(conversation);
conversationWindow.BeginOpenExtensibilityWindow("{00000000-0000-0000-0000-000000000001}",
ar =>
{
conversationWindow.EndOpenExtensibilityWindow(ar);
},
null);
App data comes from a remote party. I think your best bet would be to use runtime registration to change the FQDN on the fly.
https://msdn.microsoft.com/en-us/library/office/jj933131.aspx
这篇关于Lync ContextPackage - 将AppData传递给HTML App ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!