The middleware triggers the invocation of this handler just after a Service Instance is started.

C# |
public virtual void OnCreateService( ServiceContext serviceContext )

- serviceContext (ServiceContext)
- The context contains the information about the service that is required to create a service instance, and all of the functionality that a service will require throughout its lifetime.

The application developer must put any service initialization into this handler. Default implementation does nothing.

Exception | Condition |
---|---|
[Platform.Symphony.Soam.SoamException] | The application developer can throw SoamException (or subclassed exceptions: FailureException or FatalException) from this method to indicate that an error occurred during the creation/initializion of the service instance. |

[Platform.Symphony.Soam.ServiceContext]