protected string GetImplementationContent(ImplementationKind implKind) { string responseText = "void"; string requestText = string.Empty; if ((implKind & ImplementationKind.Request) == ImplementationKind.Request) { requestText = "RequestName request"; } if ((implKind & ImplementationKind.Response) == ImplementationKind.Response) { responseText = "ResponseName"; } string implementationContent = String.Format( Environment.NewLine + "namespace Namespace1" + Environment.NewLine + "{{" + Environment.NewLine + " public partial class MyService" + Environment.NewLine + " {{" + Environment.NewLine + " public override {0} OperationName({1})" + Environment.NewLine + " {{" + Environment.NewLine + " throw new NotImplementedException();" + Environment.NewLine + " }}" + Environment.NewLine + " }}" + Environment.NewLine + "}}",responseText,requestText); return implementationContent; }
protected string GetImplementationContent(ImplementationKind implKind) { string responseText = "void"; string requestText = string.Empty; if ((implKind & ImplementationKind.Request) == ImplementationKind.Request) { requestText = "RequestName request"; } if ((implKind & ImplementationKind.Response) == ImplementationKind.Response) { responseText = "ResponseName"; } string implementationContent = String.Format( Environment.NewLine + "namespace Namespace1" + Environment.NewLine + "{{" + Environment.NewLine + " public partial class MyService"+ Environment.NewLine + " {{"+ Environment.NewLine + " public override {0} OperationName({1})"+ Environment.NewLine + " {{"+ Environment.NewLine + " throw new NotImplementedException();"+ Environment.NewLine + " }}"+ Environment.NewLine + " }}"+ Environment.NewLine + "}}", responseText, requestText); return(implementationContent); }