Hello,
I currently use SL to enable realtime asynchronous communication between an asp.net application and a windows client .net application. Take a look at http://eneter.blogspot.com/2011/10/silverlight-notification-messages-from.html. With the end of SL looking more real every day e.g. IE10 Metro, I am wondering if I can effectively replace my simple SL interface with the Kendo framework? Below is an excerpt of my SL app. Any advice would be appreciated.
I currently use SL to enable realtime asynchronous communication between an asp.net application and a windows client .net application. Take a look at http://eneter.blogspot.com/2011/10/silverlight-notification-messages-from.html. With the end of SL looking more real every day e.g. IE10 Metro, I am wondering if I can effectively replace my simple SL interface with the Kendo framework? Below is an excerpt of my SL app. Any advice would be appreciated.
private void LoadFramework()
{
try
{
// SETUP SEND MESSAGE
// Create sender of string messages.
IStringMessagesFactory aStringMessageReceiverFactory = new StringMessagesFactory();
myStringMessageSender = aStringMessageReceiverFactory.CreateStringMessageSender();
// Create output channel sending via Tcp.
// Note1: Silverlight supports only ports of range 4502 - 4532
// Note: Set the timeout (miliseconds) for opening the connection and for sending messages.
IMessagingSystemFactory aTcpMessagingFactory = new TcpMessagingSystemFactory(1000);
IOutputChannel anOutputChannel = aTcpMessagingFactory.CreateOutputChannel("127.0.0.1:4502");
// Attach the output channel to the string message sender
// to be able to send messages via Tcp.
myStringMessageSender.AttachOutputChannel(anOutputChannel);
// SETUP RECEIVE MESSAGE
// Create the BrokerClient to subscribe and receive notifications.
IDuplexBrokerFactory aBrokerFactory = new DuplexBrokerFactory();
myBrokerClient = aBrokerFactory.CreateBrokerClient();
// Handle received notifications.
myBrokerClient.BrokerMessageReceived += OnBrokerMessageReceived;
// TCP messaging for the communication with the desktop application.
IMessagingSystemFactory aTcpMessaging = new TcpMessagingSystemFactory(1000);
// Create the TCP output channel and attach it to the BrokerClient.
IDuplexOutputChannel aTcpOutputChannel = aTcpMessaging.CreateDuplexOutputChannel("tcp://127.0.0.1:4510");
myBrokerClient.AttachDuplexOutputChannel(aTcpOutputChannel);
blChannelLoaded = true;
}
catch (Exception ex)
{
blChannelLoaded = false;
var x = ex;
//RadWindow.Alert("Please load app1");
HtmlPage.Window.Invoke("TestSLCall", "Please Load SkypeLink");
}
}