示例#1
0
 public FormatterResolverExtensionHelper(ModuleDefinition module, IMetadataScope messagePackScope, InterfaceFormatterResolverHelper iFormatterResolverHelper, InterfaceMessagePackFormatterHelper iMessagePackFormatterHelper, ModuleImporter importer)
 {
     this.module = module;
     this.iFormatterResolverHelper    = iFormatterResolverHelper;
     this.iMessagePackFormatterHelper = iMessagePackFormatterHelper;
     this.importer = importer;
     FormatterResolverExtension = new TypeReference("MessagePack", "FormatterResolverExtensions", module, messagePackScope, false);
 }
示例#2
0
 public MessagePackSerializerOptionsHelper(ModuleDefinition module, IMetadataScope messagePackScope, InterfaceFormatterResolverHelper interfaceFormatterResolverHelper, Func <MessagePackSecurityHelper> messagePackSecurityHelper)
 {
     this.interfaceFormatterResolverHelper = interfaceFormatterResolverHelper;
     this.messagePackSecurityHelper        = messagePackSecurityHelper;
     Options = new TypeReference("MessagePack", "MessagePackSerializerOptions", module, messagePackScope, false);
 }