示例#1
0
    public void UpdateOrCreateInvokerClass()
    {
        IsInvokerClassUpdated = true;

        implementer.Implement(groups);

        AssetDatabase.Refresh();
    }
示例#2
0
        protected virtual ImplementedEventSource DoImplement(TypeDefinition template)
        {
            var targetType  = CreateTargetType(template);
            var implementer = new Implementer(Module, CreateEventSourceTemplate(template), targetType)
            {
                EmitGuardedTracers = EmitGuardedTracers
            };

            return(new TemplateBasedEventSource
            {
                Old = template,
                New = targetType,
                Methods = implementer.Implement()
            });
        }