public static IServiceCollection AddServiceActivator(this IServiceCollection services, MethodInfo method, ServiceActivatorAttribute attribute)
        {
            throw new NotImplementedException("AddServiceActivator");

            // StreamListenerMethodValidator streamListenerMethod = new StreamListenerMethodValidator(method);
            // streamListenerMethod.Validate(attribute.Target, attribute.Condition);
            // services.AddSingleton<IStreamListenerMethod>(new StreamListenerMethod(method, attribute));
            // return services;
        }
Ejemplo n.º 2
0
 public ServiceActivatorMethod(MethodInfo method, Type targetClass, ServiceActivatorAttribute attribute)
 {
     Method             = method;
     ImplementationType = targetClass;
     Attribute          = attribute;
 }