@@ -22,12 +22,13 @@ public HandlerDescriptor(
2222 Type handlerType ,
2323 Type @params ,
2424 Type registrationType ,
25- object registerOptions ,
26- Registration registration ,
25+ object registrationOptions ,
26+ bool allowsDynamicRegistration ,
2727 Type capabilityType ,
2828 Action disposeAction )
2929 {
3030 _disposeAction = disposeAction ;
31+ Id = Guid . NewGuid ( ) ;
3132 Method = method ;
3233 Key = key ;
3334 ImplementationType = handler . GetType ( ) ;
@@ -36,8 +37,8 @@ public HandlerDescriptor(
3637 Params = @params ;
3738 Response = Response ;
3839 RegistrationType = registrationType ;
39- RegisterOptions = registerOptions ;
40- Registration = registration ;
40+ RegistrationOptions = registrationOptions ;
41+ AllowsDynamicRegistration = allowsDynamicRegistration ;
4142 CapabilityType = capabilityType ;
4243
4344 var requestInterface = @params ? . GetInterfaces ( )
@@ -65,10 +66,11 @@ public HandlerDescriptor(
6566 public Type ImplementationType { get ; }
6667 public Type HandlerType { get ; }
6768
69+ public Guid Id { get ; }
6870 public bool HasRegistration => RegistrationType != null ;
6971 public Type RegistrationType { get ; }
70- public object RegisterOptions { get ; }
71- public Registration Registration { get ; }
72+ public object RegistrationOptions { get ; }
73+ public bool AllowsDynamicRegistration { get ; }
7274
7375 public bool HasCapability => CapabilityType != null ;
7476 public Type CapabilityType { get ; }
0 commit comments