Example #1
0
        public ComponentRegistration <TActor> Build()
        {
            ActorHelpers.ValidateServiceType(ServiceType);

            return(_registration
                   .AddAttributeDescriptor(FacilityConstants.ActorKey, bool.TrueString)
                   .AddAttributeDescriptor(FacilityConstants.ActorServiceTypeKey, ServiceType.AssemblyQualifiedName)
                   .ExtendedProperties(
                       Property.ForKey <Func <ActorBase, IActorStateProvider, IActorStateManager> >().Eq(StateManagerFactory),
                       Property.ForKey <ActorServiceSettings>().Eq(ServiceSettings)));
        }
 public static IActorConfigurer WithService(this IActorConfigurer configurer, Type serviceType)
 {
     ActorHelpers.ValidateServiceType(serviceType);
     configurer.ServiceType = serviceType;
     return(configurer);
 }