static EndpointConfiguration BuildInterface(Type actor) { if (ActorTypeName.IsRegistered(actor)) { return(null); // assume endpoint was already build from implementation } return(new ActorConfiguration(ActorTypeName.Register(actor))); }
static EndpointConfiguration BuildWorker(Type worker) { var config = new WorkerConfiguration(ActorTypeName.Register(worker)); SetReentrancy(worker, config); SetKeepAliveTimeout(worker, config); SetReceiver(worker, config); SetAutorun(worker, config); SetStickiness(worker, config); SetInvoker(worker, config); return(config); }
static EndpointConfiguration BuildActor(Type actor) { var config = new ActorConfiguration(ActorTypeName.Register(actor)); SetPlacement(actor, config); SetReentrancy(actor, config); SetKeepAliveTimeout(actor, config); SetReceiver(actor, config); SetAutorun(actor, config); SetStickiness(actor, config); SetInvoker(actor, config); return(config); }