示例#1
0
        public Response <CipherV2> DecodeXDSSec(string xdsSecText, LongRunningOperationContext context)  // should the parameter type be XDSSecText?
        {
            var response = new Response <CipherV2>();

            try
            {
                Guard.NotNull(xdsSecText);
                EnsurePlatform();

                response.Result = XDSSecFormatter.DissectXDSSecText(xdsSecText, context);
                response.SetSuccess();
            }
            catch (Exception e)
            {
                response.SetError(e);
            }
            return(response);
        }