public SqlMessageStoreWriter(
            SqlBulkInsertSession session,
            SqlBulkInsertCommandBuilder builder,
            JournalMessageTypeRegistrar types,
            int maxSliceSize)
        {
            if (session == null)
            {
                throw new ArgumentNullException("session");
            }

            if (builder == null)
            {
                throw new ArgumentNullException("builder");
            }

            if (types == null)
            {
                throw new ArgumentNullException("types");
            }

            if (maxSliceSize < 10)
            {
                throw new ArgumentOutOfRangeException("maxSliceSize");
            }

            this.session      = session;
            this.builder      = builder;
            this.types        = types;
            this.maxSliceSize = maxSliceSize;
        }
 public SqlBulkInsertCommandBuilder(JournalMessageTypeRegistrar types, SqlBulkInsertSession session)
 {
     this.types   = types;
     this.session = session;
 }