Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
cosmicarts #1
Member since Dec 2012 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: ConnectedStandby
How i have to realize connectedstandby with matrix?
Avatar
Alex #2
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
sorry but I don't understand your question, please elaborate.
Avatar
cosmicarts #3
Member since Dec 2012 · 3 posts
Group memberships: Members
Show profile · Link to this post
On win8 the App can go to "suspended" mode. to get messages when in suspended mode, we have to implement a background task and a way of keepalive "pinging".
Avatar
Alex #4
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This is currently not supported. Its on our roadmap to support ControlChannelTrigger on the socket transport with an update.

Alex
Avatar
cosmicarts #5
Member since Dec 2012 · 3 posts
Group memberships: Members
Show profile · Link to this post
when will you have a first version with that feature?
Avatar
Alex #6
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I cannot promise or tell you any dates. If you need this feature immediately then contact me directly by email.
Avatar
Alex #7
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
We have a beta now which supports the Control Channel trigger.

Alex
Avatar
tamir.dresher #8
Member since Jan 2013 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: How can i get the beta?
and is there a tutorial\instruction for using it?
Avatar
Alex #9
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Microsoft published some documents which explain the usage in detail. You should study and understand those documents first.

In MatriX there is a event OnBeforeRegisterControlChannelTrigger. There you can set RegisterControlChannelTrigger to true and pass optional stuff when required like the channel id or slot properties.

The default values are the following:
ChannelId = "MatriX_Channel";
ServerKeepAliveInterval = 30;
ControlChannelTriggerResourceType = ControlChannelTriggerResourceType.RequestHardwareSlot;

  1. void client_OnBeforeRegisterControlChannelTrigger(object sender, Matrix.Net.ControlChannelTriggerEventArgs e)
  2. {
  3.     e.RegisterControlChannelTrigger = true;
  4.     e.ChannelId = "FOO";
  5. }

during the registration of the control channel it fires the event OnRegisterBackgroundTasks. This is where you can register background tasks with the newly created ControlChannelTrigger which you have access to in the EventArgs.

Alex
Avatar
Alex #10
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Here are the links to the Microsoft documents:
http://www.microsoft.com/en-us/download/details.…?id=289…
http://www.microsoft.com/en-us/download/details.…?id=274…

here is a ControlChannelTrigger Example from Microsoft:
http://code.msdn.microsoft.com/windowsapps/ControlChannelT…
Avatar
tamir.dresher #11
Member since Jan 2013 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: thanks
I see that the MinClientWinRT example define a ControlChannel but i cant see how it is being used there
Avatar
Alex #12
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You have to study the documents and examples above I posted from Microsoft.
The MiniClientWinRT example does not show this feature.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: