void hostSNodeVideoService(object lstParams) { try { List <object> lstTempObj = (List <object>)lstParams; strUri = lstTempObj[1].ToString(); string strNetP2PURI = ""; BasicHttpClient httpClient = new BasicHttpClient(); channelSNodeHttp = (IHttpSNodeVideo)httpClient.OpenClient <IHttpSNodeVideo>(strUri); channelSNodeHttp.svcJoin(VMuktiInfo.CurrentPeer.DisplayName); strNetP2PURI = channelSNodeHttp.svcStartVideoServer(VMuktiInfo.CurrentPeer.DisplayName, lstTempObj[0].ToString()); List <object> lstData = new List <object>(); lstData.Add(VMuktiInfo.CurrentPeer.DisplayName); lstData.Add(strNetP2PURI); lstData.Add("First"); lstData.Add(lstTempObj[lstTempObj.Count - 1]); this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, objGetUserList, lstData); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "hostSNodeVideoService", "ctlVideo.xaml.cs"); } }
void hostSNodeVideoService(object lstParams) { try { List<object> lstTempObj = (List<object>)lstParams; strUri = lstTempObj[1].ToString(); string strNetP2PURI = ""; BasicHttpClient httpClient = new BasicHttpClient(); channelSNodeHttp = (IHttpSNodeVideo)httpClient.OpenClient<IHttpSNodeVideo>(strUri); channelSNodeHttp.svcJoin(VMuktiInfo.CurrentPeer.DisplayName); strNetP2PURI = channelSNodeHttp.svcStartVideoServer(VMuktiInfo.CurrentPeer.DisplayName, lstTempObj[0].ToString()); List<object> lstData = new List<object>(); lstData.Add(VMuktiInfo.CurrentPeer.DisplayName); lstData.Add(strNetP2PURI); lstData.Add("First"); lstData.Add(lstTempObj[lstTempObj.Count - 1]); this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, objGetUserList, lstData); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "hostSNodeVideoService", "ctlVideo.xaml.cs"); } }