Exemplo n.º 1
0
        public IEnumerable <string> GetAllPendingMessages()
        {
            var targetMessageCollectorType = TargetLibAssembly.GetType(typeof(MessageCollector).ToString());
            var targetMethod = targetMessageCollectorType.GetMethod("GetAllPendingMessages", BindingFlags.Static | BindingFlags.Public);

            return(targetMethod.Invoke(null, null) as IEnumerable <string>);
        }
Exemplo n.º 2
0
        public IEnumerable <string> GetStepTexts(MethodInfo stepMethod)
        {
            var     targetStepType = TargetLibAssembly.GetType(typeof(Step).ToString());
            dynamic step           = stepMethod.GetCustomAttribute(targetStepType);

            return(step.Names);
        }
Exemplo n.º 3
0
        public void InitializeDataStore(string dataStoreType)
        {
            var remoteDataStoreType = TargetLibAssembly.GetType(typeof(DataStoreFactory).ToString());
            var dataStoreGetter     = remoteDataStoreType.GetMethod(string.Format("Initialize{0}DataStore", dataStoreType));

            if (dataStoreGetter != null)
            {
                dataStoreGetter.Invoke(null, null);
            }
        }