Skip to content

Obsolete ISessionImplementor.Initialize method #1464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/NHibernate/Engine/ISessionImplementor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ internal static IDisposable BeginProcess(this ISessionImplementor session)
/// </summary>
public partial interface ISessionImplementor
{
// 5.1 TODO: obsolete Initialize, it has no more usages.
/// <summary>
/// Initialize the session after its construction was complete
/// </summary>
// Since v5.1
[Obsolete("This method has no more usages in NHibernate and will be removed.")]
void Initialize();

/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions src/NHibernate/Impl/AbstractSessionImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ protected internal AbstractSessionImpl(ISessionFactoryImplementor factory, ISess

#region ISessionImplementor Members

// Since v5.1
[Obsolete("This method has no more usages in NHibernate and will be removed.")]
public void Initialize()
{
BeginProcess()?.Dispose();
Expand Down