Dev2.Runtime.ServiceModel.PluginSources.ValidateAssemblyImageFormat C# (CSharp) Method

ValidateAssemblyImageFormat() public method

public ValidateAssemblyImageFormat ( string args, System.Guid workspaceId, System.Guid dataListId ) : string
args string
workspaceId System.Guid
dataListId System.Guid
return string
        public string ValidateAssemblyImageFormat(string args, Guid workspaceId, Guid dataListId)
        {
            // ReSharper disable RedundantAssignment
            var toJson = @"{""validationresult"":""failure""}";
            // ReSharper restore RedundantAssignment

            var broker = new PluginBroker();

            string errorMsg;

            if(broker.ValidatePlugin(args, out errorMsg))
            {
                toJson = @"{""validationresult"":""success""}";
            }
            else
            {
                toJson = @"{""validationresult"":""" + errorMsg + @"""}";
            }

            return toJson;
        }