Bring a large pot of water to a boil for the pasta. Heat the olive oil over high heat in a heavy skillet. Add the shallot and garlic; saute for approximately 5 minutes, or until they begin to caramelize. Add the mushrooms, basil, oregano, salt, and pepper, saute and additional 5 minutes. Stir in the flour, lower the heat to medium, and cook the flour for 2 or 3 minutes while stirring. Add the white wine, bring to a boil and reduce by half, stir often to alleviate scorching. Add the stock and simmer for 5 minutes, then add the cream and simmer another minute. Drop the pasta into the pot of boiling water. Cook the pasta for about three minutes--until al dente--and drain it thoroughly. Add the pasta to the sauce; toss it for a few minutes to insure that it is heated throughout. Stir in some of the cheese and sprinkle the remaining over the top of the finished dish.