Exemplo n.º 1
0
		/// <summary>Close (or recycle) a session to a host.</summary>
		/// <remarks>Close (or recycle) a session to a host.</remarks>
		/// <param name="session">
		/// a session previously obtained from this factory's
		/// <see cref="GetSession(string, string, string, int, CredentialsProvider, NGit.Util.FS)
		/// 	">GetSession(string, string, string, int, CredentialsProvider, NGit.Util.FS)</see>
		/// method.
		/// </param>
		public virtual void ReleaseSession(Session session)
		{
			if (session.IsConnected())
			{
				session.Disconnect();
			}
		}