public NodeResponse get(NodeSelect.Request Request) { //delegate has to be static because you can't create an instance yet: you don't have resources until the delegate is actually called NodeResponse Ret = new NodeResponse(); var GetViewDriverType = new CswWebSvcDriver <NodeResponse, NodeSelect.Request>( CswWebSvcResourceInitializer: new CswWebSvcResourceInitializerNbt(_Context, null), ReturnObj: Ret, WebSvcMethodPtr: CswNbtWebServiceNode.getNodes, ParamObj: Request ); GetViewDriverType.run(); return(Ret); }
/// <summary> /// WCF wrapper around getNodes /// </summary> public static void getNodes(ICswResources CswResources, NodeResponse Response, NodeSelect.Request Request) { if (null != CswResources) { CswNbtResources NbtResources = (CswNbtResources)CswResources; CswNbtSdNode sd = new CswNbtSdNode(NbtResources); Response.Data = sd.getNodes(Request); } }