Exemplo n.º 1
0
        public VersionInfo GetVersion()
        {
            OutgoingWebResponseContext context = WebOperationContext.Current.OutgoingResponse;

            context.ContentType = "application/xml";
            return(_adapterProvider.GetVersion());
        }
Exemplo n.º 2
0
        public void GetVersion(string format)
        {
            format = MapContentType(null, null, format);

            VersionInfo version = _adapterProvider.GetVersion();

            _adapterProvider.FormatOutgoingMessage <VersionInfo>(version, format, true);
        }