Beispiel #1
0
        /// <summary>
        /// Asynchronous mode of submitting a job and get a ServiceJobSession object.
        /// </summary>
        /// <param name="info">The session start info for creating the service session</param>
        /// <param name="binding">indicating the binding</param>
        /// <returns>A service job session object, including the endpoint address and the two jobs related to this session</returns>
        public static async Task <HpcSession> CreateSessionAsync(SessionStartInfo startInfo, Binding binding)
        {
            Utility.ThrowIfNull(startInfo, "startInfo");

            return(new HpcSession(await HpcV3Session.CreateSessionAsync(startInfo, binding).ConfigureAwait(false)));
        }
Beispiel #2
0
 /// <summary>
 /// Asynchronous mode of submitting a job and get a ServiceJobSession object.
 /// </summary>
 /// <param name="info">The session start info for creating the service session</param>
 /// <returns>A service job session object, including the endpoint address and the two jobs related to this session</returns>
 public static async Task <HpcSession> CreateSessionAsync(SessionStartInfo startInfo)
 {
     return(new HpcSession(await HpcV3Session.CreateSessionAsync(startInfo, null).ConfigureAwait(false)));
 }