public ServerDataSource(string name, string uri, InstanceIdentify instanceIdentify, FetClassIdentify fetclassIdentify) : base(name) { _uri = uri; _instanceIdentify = instanceIdentify; _fetclassIdentify = fetclassIdentify; GenerateUrl(); }
public static IServerDataSource FromXElement(XElement xele) { if (xele == null) { return(null); } string name = xele.Attribute("name").Value; string uri = xele.Attribute("uri").Value; InstanceIdentify instanceId = InstanceIdentify.FromXElement(xele.Element("InstanceIdentify")); FetClassIdentify fetclassId = FetClassIdentify.FromXElement(xele.Element("FetClassIdentify")); ServerDataSource ds = new ServerDataSource(name, uri, instanceId, fetclassId); if (xele.Element("ArgsOfLeveling") != null) { ds.SetArgOfLevel(ArgOfLeveling.FromXElement(xele.Element("ArgsOfLeveling"))); } return(ds); }