private void HandleSessionCreateCompleted(object sender, CreateCompleteEventArgs eventArgs) { if (eventArgs != null) { this.connectionInfo.IdleTimeout = eventArgs.ConnectionInfo.IdleTimeout; this.connectionInfo.MaxIdleTimeout = eventArgs.ConnectionInfo.MaxIdleTimeout; WSManConnectionInfo connectionInfo = this.connectionInfo as WSManConnectionInfo; if (connectionInfo != null) { connectionInfo.OutputBufferingMode = ((WSManConnectionInfo) eventArgs.ConnectionInfo).OutputBufferingMode; } } this.SessionCreateCompleted.SafeInvoke<CreateCompleteEventArgs>(this, eventArgs); }
/// <summary> /// The session has been successfully created. /// </summary> /// <param name="sender"></param> /// <param name="eventArgs"></param> private void HandleSessionCreateCompleted(object sender, CreateCompleteEventArgs eventArgs) { // Update connectionInfo with updated information from the transport. if (eventArgs != null) { _connectionInfo.IdleTimeout = eventArgs.ConnectionInfo.IdleTimeout; _connectionInfo.MaxIdleTimeout = eventArgs.ConnectionInfo.MaxIdleTimeout; WSManConnectionInfo wsmanConnectionInfo = _connectionInfo as WSManConnectionInfo; if (wsmanConnectionInfo != null) { wsmanConnectionInfo.OutputBufferingMode = ((WSManConnectionInfo)eventArgs.ConnectionInfo).OutputBufferingMode; } } // Forward event. SessionCreateCompleted.SafeInvoke<CreateCompleteEventArgs>(this, eventArgs); }
internal void RaiseCreateCompleted(CreateCompleteEventArgs eventArgs) { this.CreateCompleted.SafeInvoke<CreateCompleteEventArgs>(this, eventArgs); }
private void HandleSessionCreateCompleted(object sender, CreateCompleteEventArgs eventArgs) { if (eventArgs != null) { this._connectionInfo.IdleTimeout = eventArgs.ConnectionInfo.IdleTimeout; this._connectionInfo.MaxIdleTimeout = eventArgs.ConnectionInfo.MaxIdleTimeout; WSManConnectionInfo info = this._connectionInfo as WSManConnectionInfo; if (info != null) { info.OutputBufferingMode = ((WSManConnectionInfo) eventArgs.ConnectionInfo).OutputBufferingMode; } } }