示例#1
0
        public void Test()
        {
            var subject = new ModuleEngine (null, null);

            var method = subject.GetMethod<Func<ActorCore, bool>> (a => a.ShouldRunSynchronously ());
            var ctor = subject.GetMethod<Func<ActorCore>> (() => new ActorCore ());
        }
示例#2
0
		public void Execute()
		{
			LogComedianVersion ();

			var logger = new Logger (LogInfo, LogWarning, LogError);
			var engine = new ModuleEngine (ModuleDefinition, logger);

			var actorTypes = ModuleDefinition.GetTypes ().Where(HasActorAttribute);
			foreach(var actorType in actorTypes)
			{
				engine.GetWeaver(actorType).Apply ();
			}
		}