Пример #1
0
 protected override void OnRegisterDependencies(
     IInitializationContext context,
     InterfaceTypeDefinition definition)
 {
     base.OnRegisterDependencies(context, definition);
     context.RegisterDependencies(definition);
 }
Пример #2
0
 protected override void OnRegisterDependencies(
     IInitializationContext context,
     EnumTypeDefinition definition)
 {
     base.OnRegisterDependencies(context, definition);
     context.RegisterDependencies(definition);
     SetTypeIdentity(typeof(EnumType <>));
 }