/// <summary> /// Creates an AMFContext. /// </summary> /// <param name="httpContext">The HttpContext of the request, or null if not applicable</param> /// <param name="serializerFactory">The ActionScript serializer factory</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="serializerFactory"/> is null</exception> public GatewayAMFContext(HttpContext httpContext, IActionScriptSerializerFactory serializerFactory) { if (serializerFactory == null) throw new ArgumentNullException("serializerFactory"); this.httpContext = httpContext; this.serializerFactory = serializerFactory; request = new GatewayAMFRequest(this); response = new GatewayAMFResponse(this); }
/// <summary> /// Creates an AMFContext. /// </summary> /// <param name="httpContext">The HttpContext of the request, or null if not applicable</param> /// <param name="serializerFactory">The ActionScript serializer factory</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="serializerFactory"/> is null</exception> public GatewayAMFContext(HttpContext httpContext, IActionScriptSerializerFactory serializerFactory) { if (serializerFactory == null) { throw new ArgumentNullException("serializerFactory"); } this.httpContext = httpContext; this.serializerFactory = serializerFactory; request = new GatewayAMFRequest(this); response = new GatewayAMFResponse(this); }