コード例 #1
0
 /// <summary>
 /// Generate session launcher uri from the head node machine name
 /// </summary>
 /// <param name="headNode">indicating the head node</param>
 /// <returns>returns the session launcher uri</returns>
 private static Uri GetSessionLauncherUri(string headNode)
 {
     return(new Uri(SoaHelper.GetSessionLauncherInternalAddress(headNode)));
 }
コード例 #2
0
ファイル: Utility.cs プロジェクト: umialpha/Telepathy
 /// <summary>
 /// Get the endpoint Uri for session launcher
 /// </summary>
 /// <param name="headnode">the headnode name</param>
 /// <param name="binding">indicating the binding</param>
 /// <param name="useInternalChannel">If connect to Session Launcher via internal channel</param>
 /// <returns>the SessionLauncher EPR</returns>
 public static Uri GetSessionLauncher(string headnode, Binding binding, bool useInternalChannel)
 {
     if (LocalSession.LocalBroker)
     {
         return(new Uri(SessionLauncherNetPipeAddress));
     }
     else
     {
         return(new Uri((useInternalChannel || SoaHelper.IsCurrentUserLocal()) ? SoaHelper.GetSessionLauncherInternalAddress(headnode, binding) : SoaHelper.GetSessionLauncherAddress(headnode, binding)));
     }
 }