public override void ProcessNamespaces(IDLInterface idlIntf) { string nsName = CodeBuilderCommon.GetNamespace(idlIntf.Name, this.visitorType); this.ifName = CodeBuilderCommon.GetName(idlIntf.Name, new InterfaceVisitor()); ns = CodeBuilderCommon.AddUsingNamespaces(new CodeNamespace(nsName), this.visitorType); }
public override void ProcessNamespaces(IDLInterface idlIntf) { this.InitializeInterface(idlIntf); // TODO: SHOULD BE DONE IN THE MAIN GENERATE METHOD this.ns = new CodeNamespace(this.nsServiceName); CodeBuilderCommon.AddUsingNamespaces(this.ns, new WCFServiceVisitor()); }
public override void ProcessNamespaces(IDLInterface idlIntf) { name = CodeBuilderCommon.GetName(idlIntf.Name, null); string nsName = CodeBuilderCommon.GetNamespace(idlIntf.Name, new InterfaceVisitor()); genInterfaceName = CodeBuilderCommon.GetName(idlIntf.Name, new InterfaceVisitor()); // Namespace. ns = new CodeNamespace(nsName + ".Proxy"); CodeBuilderCommon.AddUsingNamespaces(ns, new ProxyVisitor()); }
public override void ProcessNamespaces(IDLInterface idlIntf) { //Get the necessary names this.ifName = CodeBuilderCommon.GetName(idlIntf.Name, null); this.nsName = CodeBuilderCommon.GetNamespace(idlIntf.Name, new InterfaceVisitor()); this.nsContractName = CodeBuilderCommon.GetNamespace(idlIntf.Name, new WCFContractVisitor()); string nsServiceName = CodeBuilderCommon.GetNamespace(idlIntf.Name, new WCFServiceVisitor()); //Local scope, not needed later //Get the necessary scoped names this.scopedDbusServiceName = CodeBuilderCommon.GetScopedName(this.nsName, CodeBuilderCommon.GetName(idlIntf.Name, new DBUSServiceVisitor())); this.scopedWCFContractName = CodeBuilderCommon.GetScopedName(this.nsContractName, CodeBuilderCommon.GetName(idlIntf.Name, new InterfaceVisitor())); this.scopedWCFServiceName = CodeBuilderCommon.GetScopedName(nsServiceName, CodeBuilderCommon.GetName(idlIntf.Name, new WCFServiceVisitor())); //Get our the Host's namespace and give it all the imports it requires this.nsHost = new CodeNamespace(CodeBuilderCommon.GetNamespace(idlIntf.Name, new WCFHostVisitor())); CodeBuilderCommon.AddUsingNamespaces(this.nsHost, new WCFHostVisitor()); }