/// <summary>
    /// Called when the dialog is closing.
    /// </summary>
    protected override void OnClosing()
    {
        _loadSearchResults = false;
        ISessionService sessionService = ApplicationContext.Current.Services.Get <ISessionService>(true);
        ISessionState   sessionState   = sessionService.GetSessionState();

        sessionState.Remove("IntegrationManager");
    }
Exemple #2
0
 /// <summary>
 /// Removes state data stored in the session state with the specified key.
 /// </summary>
 /// <typeparam name="T">The type of data to remove.</typeparam>
 /// <param name="key">An object representing the unique key with which the data was stored.</param>
 public void Remove <T>(object key)
 {
     _state.Remove <T>(key);
 }