Skip to content

Channel_Closed in ShellStream #44

Closed
@trebor-salim

Description

@trebor-salim

Are you planning to add an event "Closed" in the class "ShellStream"?

Something like this:

public event EventHandler Closed;

public override void Close()
{
if (_channel != null)
_channel.Close();
base.Close();
}

private void Channel_Closed(object sender, ChannelEventArgs e)
{
if (Closed != null)
{
// Handle event on different thread
ExecuteThread(() => Closed(this, new EventArgs()));
}
}

instead of this:

private void Channel_Closed(object sender, ChannelEventArgs e)
{
// TODO: Do we need to call dispose here ??
Dispose();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions