Beispiel #1
0
        public void Test2()
        {
            var module = ModuleDefinition.CreateModule ("lollollol", ModuleKind.Dll);

            var type = module.ImportReference (typeof(TestAsync)).Resolve();

            var logger = Substitute.For<ILogger> ();

            var engine = new ActorEngine (type, logger);
            var weaver = new ActorWeaver (engine, type);

            weaver.Apply ();
        }
Beispiel #2
0
 public override IWeaver GetWeaver(TypeDefinition type, FieldDefinition mixin = null)
 {
     var engine = new ActorEngine (type, _logger);
     return new ActorWeaver (engine, type);
 }