I'm trying to create instances of stateless services on demand at runtime without additonal entries about types at manifest file.
At the begging I thought, that I can use
using (FabricRuntime fabricRuntime = FabricRuntime.Create())
{
fabricRuntime.RegisterServiceType("ServiceType", typeof(Service));
}
and
ServiceRuntime.RegisterServiceAsync("ServiceType", context => new Service(context)).GetAwaiter().GetResult();
Howerver I still have to register service type or service template at manifest file, but that's beside the point.
Now, I wonder if it is possible to create instance of stateless service without metadata at manifest or powershell scripts? Just write services programmatically?