Esempio n. 1
0
 static EndpointConfiguration BuildInterface(Type actor)
 {
     if (ActorTypeName.IsRegistered(actor))
     {
         return(null); // assume endpoint was already build from implementation
     }
     return(new ActorConfiguration(ActorTypeName.Register(actor)));
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }