示例#1
0
 public MashupDescription(string name, IDictionary <string, string> parameters, IMashupRepository mashupRepository)
 {
     _name             = name;
     _parameters       = parameters;
     _mashupRepository = mashupRepository;
 }
示例#2
0
        public static MashupDescription CreateMashupDescription(string mashupCall, IDictionary <string, string> standardParameters, IMashupRepository mashupRepository)
        {
            string name;
            IDictionary <string, string> parameters = new Dictionary <string, string>();

            string[] tokens = mashupCall.Split('[', ']');
            name = tokens[0];

            CopyStandardParameters(parameters, standardParameters);

            if (tokens.Length > 1)
            {
                AddParameters(parameters, tokens);
            }

            MashupDescription mashupDescription = new MashupDescription(name, parameters, mashupRepository);

            return(mashupDescription);
        }