GetResponseSerializer and ResponseSerializerDelegate no more available after upgrading to upgraded to SS 5.0

Hi , I’ve just upgraded to service stack 5.0 , and I cannot compile a piece of code in the UncaughtExceptionHandlers.

how can i replace this piece of code ? I need to fill responsedto when there is an UncaughtException
thank you
enrico

	ResponseSerializerDelegate serializer = 			: 

HostContext.ContentTypes.GetResponseSerializer(contentType);

}

You can use:

var serializer = HostContext.ContentTypes.GetStreamSerializerAsync(contentType);

Or you can serialize to the response stream with:

HostContext.ContentTypes.SerializeToStreamAsync(req, dto, res.OutputStream);