I'm not a .Net user myself, so I'm afraid I can't advise on the specifics of that, but the basic ripping/encoding process will look something like this...
HSTREAM decoder=BASS_CD_StreamCreate(drive, track, BASS_STREAM_DECODE); // create a "decoding channel" from a CD track
BASS_Encode_Start(decoder, "lame - output.mp3", BASS_ENCODE_AUTOFREE, NULL, NULL); // set an MP3 encoder (LAME) on it
while (BASS_ChannelIsActive(decoder) && BASS_Encode_IsActive(decoder)) { // the decoder and encoder are still going
char buf [20000]; // processing buffer
BASS_ChannelGetData(decoder, buf, sizeof(buf)); // process some data
}
BASS_StreamFree(decoder); // free the decoder (and encoder due to AUTOFREE)
Please see the documentation for details on the aforementioned functions.