private static void TestRootSerialization <T>(RequestRoot <T> root, RequestRootXmlSerializer serializer) { var xml1 = serializer.SerializeToString(root); Debug.WriteLine(xml1); var root11 = serializer.DeserializeFromString(xml1); Debug.Assert(root.GetType() == root11.GetType()); // NO ASSERT var xml11 = serializer.SerializeToString(root11); Debug.WriteLine(xml11); Debug.Assert(xml1 == xml11); // NO ASSERT }
public Request(ILogger logger, EndPointInfo endPointInfo, RequestRoot root) : this(logger, endPointInfo, new[] { ((int)root).ToString() }) { Logger = logger; }
public Request GetRequest(RequestRoot root) { return(new Request(_logger, this, root)); }