Esempio n. 1
0
        public static AnonymousActorFactory CreateAnonymousActorFactory(
            Action <ActorFactoryConfigurator <AnonymousActor> > configurator)
        {
            var factoryConfiguratorImpl = new ActorFactoryConfiguratorImpl <AnonymousActor>();

            configurator(factoryConfiguratorImpl);

            return(factoryConfiguratorImpl.CreateActorFactory() as AnonymousActorFactory);
        }
Esempio n. 2
0
        public static ActorFactory <TActor> Create <TActor>(Action <ActorFactoryConfigurator <TActor> > configurator)
            where TActor : class, Actor
        {
            var factoryConfiguratorImpl = new ActorFactoryConfiguratorImpl <TActor>();

            configurator(factoryConfiguratorImpl);

            return(factoryConfiguratorImpl.CreateActorFactory());
        }