//------------------------------------------------------------------------------------Event Handler-------------------------------------------------------------------------------- private void InterfaceChannel_Closed(object sender, EventArgs e) { IContextChannel ThisContext = (IContextChannel)sender; CallBackHandler.RemoveInterfaceConnection(ThisContext.SessionId); AstroData.UnsubscribeBySessionID(ThisContext.SessionId); }
public void UnsubscribeBySessionID() { OperationContext context = OperationContext.Current; AstroData.UnsubscribeBySessionID(context.SessionId); }