public static void main()

in generators/StatefulActor/templates/service/class/Service.java [17:31]


    public static void main(String[] args) throws Exception {
        
        try {

            /*
            This line registers an Actor Service to host your actor class with the Service Fabric runtime.
            For more information, see http://aka.ms/servicefabricactorsplatform
            */
            ActorRuntime.registerActorAsync(<%= actorName %>Impl.class, (context, actorType) -> new FabricActorService(context, actorType, (a,b)-> new <%= actorName %>Impl(a,b)), Duration.ofSeconds(10));
            Thread.sleep(Long.MAX_VALUE);
        } catch (Exception e) {
            logger.log(Level.SEVERE, "Exception occured", e);
            throw e;
        }
    }