コード例 #1
0
ファイル: ctlVideo.xaml.cs プロジェクト: xiaoliukai/VMukti
        void ctlVideo_EntsvcGetUserList(string UName, string videoURI)
        {
            try
            {
                if (UName != VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName)
                {
                    List <object> lstData = new List <object>();
                    lstData.Add(UName);
                    lstData.Add(videoURI);

                    this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, objGetUserList, lstData);

                    channelNetP2P.svcSetUserList(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, strLocalCameraUri);
                }
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlVideo_EntsvcGetUserList", "ctlVideo.xaml.cs");
            }
        }
コード例 #2
0
 void MainVideoDummies_http_EntsvcSetUserList(string UName, string videoURI)
 {
     try
     {
         objINetP2PChannel.svcSetUserList(UName, videoURI);
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "--MainVideoDummies_http_EntsvcSetUserList()---VMukti--:--VmuktiModules--:--Collaborative--:--Video.Presentation--:--MainVideoDummies.cs--:");
         //ClsException.LogError(ex);
         //ClsException.WriteToErrorLogFile(ex);
         System.Text.StringBuilder sb = new StringBuilder();
         sb.AppendLine(ex.Message);
         sb.AppendLine();
         sb.AppendLine("StackTrace : " + ex.StackTrace);
         sb.AppendLine();
         sb.AppendLine("Location : " + ex.Data["My Key"].ToString());
         sb.AppendLine();
         sb1 = CreateTressInfo();
         sb.Append(sb1.ToString());
         VMuktiAPI.ClsLogging.WriteToTresslog(sb);
     }
 }