示例#1
0
 public void OnAfterInitialize(ITypeDiscoveryContext discoveryContext, DefinitionBase?definition, IDictionary <string, object?> contextData)
 {
     if (definition is T casted)
     {
         _onAfterInitialize?.Invoke(discoveryContext, casted, contextData);
     }
 }
示例#2
0
 public void OnAfterRegisterDependencies(
     ITypeDiscoveryContext discoveryContext,
     DefinitionBase?definition,
     IDictionary <string, object?> contextData)
 {
     if (definition is T casted)
     {
         _onAfterRegisterDependencies?.Invoke(discoveryContext, casted, contextData);
     }
 }
 public void OnBeforeRegisterDependencies(
     ITypeDiscoveryContext discoveryContext,
     DefinitionBase?definition,
     IDictionary <string, object?> contextData) =>
 _onBeforeRegisterDependencies?.Invoke(discoveryContext, definition, contextData);
 public void OnAfterInitialize(
     ITypeDiscoveryContext discoveryContext,
     DefinitionBase?definition,
     IDictionary <string, object?> contextData) =>
 _onAfterInitialize?.Invoke(discoveryContext, definition, contextData);