public AmfEndpointContext(ServiceEndpoint endpoint)
{
if (endpoint == null) throw new ArgumentNullException("endpoint");
_contracts = new List<Type>();
ResolveContracts(endpoint);
ServiceEndpoint = endpoint;
AmfSerializer = new DataContractAmfSerializer(typeof(AmfPacket), _contracts);
}