public CreateNetConfSession ( ISession session, System.TimeSpan operationTimeout ) : INetConfSession | ||
session | ISession | The |
operationTimeout | System.TimeSpan | The operation timeout. |
리턴 | INetConfSession |
/// <summary> /// Called when client is connected to the server. /// </summary> protected override void OnConnected() { base.OnConnected(); _netConfSession = ServiceFactory.CreateNetConfSession(Session, OperationTimeout); _netConfSession.Connect(); }
private INetConfSession CreateAndConnectNetConfSession() { var netConfSession = ServiceFactory.CreateNetConfSession(Session, _operationTimeout); try { netConfSession.Connect(); return(netConfSession); } catch { netConfSession.Dispose(); throw; } }