title: how register an interface that has no implentation with autofac?
body: <p>How you I register an interface that has no implentation using Autofac? </p>
  
  <p>I want Autofac to use DynamicProxy to generate interface your me!</p>
  
  <pre><code>builder.RegisterType(typeof(IUserDao))
      .AsImplementedInterfaces()
      .EnableInterfaceInterceptors()
      .InterceptedBy(typeof(SqlMapperInterceptor));
  
  
  public class SqlMapperInterceptor : IInterceptor
  {
      public void Intercept(IInvocation invocation)
      {
          //todo: mapper sql file and return data
      }
  }
  </code></pre>