Vojtech B
Vojtech B

Reputation: 2967

Is it possible to have Orleans host without a client?

I have a grain that sets up a reminder in OnActivate method. The reminder then periodically does some action and no further communication is needed from outside the silo.

Is it possible to get a GrainProvider during host start and activate the grain within the Host itself?

Or do I need a client to initiate the first activation?

Upvotes: 2

Views: 378

Answers (1)

Veksi
Veksi

Reputation: 3768

You can call the grain in Application Bootstrapping within a Silo, which is called on silo startup. Calling the gets its OnActicate called. Some more documentation at Bootstrap provider.

It would be possible to insert the data straight to the persistent storage (via some side-channel) too, but that's a somewhat of an unsupport scenario (at the moment).

Upvotes: 7

Related Questions