title: Custom membership provider in ASP.NET
body: <p>I am implementing my own membership provider.I used Repository pattern.</p>
  
  <pre><code>public interface IMembershipService: IDisposable
  {
      void CreateUser(string username, string password, string email, string role);
      bool CheckUsernameExist(string username);
      string EncodePassword(string originalPassword,string salt);
      // Some other my admin methods
  }
  public class MembershipService : IMembershipService
  {
      public MembershipService()
      {
      }
      public void ActivateUserAccount(string username, string email)
      {
          // Some validation code
      }
      public void CreateUser(string username, string password, string email, string role)
      {
          // Some validation code
      }
     }
  </code></pre>
  
  <p>I did not inherited MembershipProvider. Now, I want to know how to implement GetUser() which return the current logged in user.I have no idea about that.
  Second thing, by inheriting MembershipProvider, Can I used GetUser() or some other useful methods? I could not inherit that class as well , if I want to do so.
  Please guide me and don't downvote as answer to this question matter me most.
  Thanks</p>