pub trait StatelessServiceFactory {
// Required method
fn create_instance(
&self,
servicetypename: &WString,
servicename: &WString,
initializationdata: &[u8],
partitionid: &GUID,
instanceid: i64,
) -> Result<impl StatelessServiceInstance>;
}
Expand description
Stateless service factories are registered with the FabricRuntime by service hosts via Runtime::register_stateless_service_factory().
Required Methods§
Sourcefn create_instance(
&self,
servicetypename: &WString,
servicename: &WString,
initializationdata: &[u8],
partitionid: &GUID,
instanceid: i64,
) -> Result<impl StatelessServiceInstance>
fn create_instance( &self, servicetypename: &WString, servicename: &WString, initializationdata: &[u8], partitionid: &GUID, instanceid: i64, ) -> Result<impl StatelessServiceInstance>
Creates a stateless service instance for a particular service. This method is called by Service Fabric.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.