async Task Usage(EndpointConfiguration endpointConfiguration, MyCustomContainer myCustomContainer) { #region ExternalPrepare IConfigureComponents configureComponents = AdaptContainerForRegistrationPhase(myCustomContainer); var startableEndpoint = EndpointWithExternallyManagedContainer.Create(endpointConfiguration, configureComponents); #endregion #region ExternalStart IBuilder builder = AdaptContainerForResolutionPhase(myCustomContainer); var startedEndpoint = await startableEndpoint.Start(builder); #endregion }
IConfigureComponents AdaptContainerForRegistrationPhase(MyCustomContainer myCustomContainer) { throw new System.NotImplementedException(); }
IBuilder AdaptContainerForResolutionPhase(MyCustomContainer myCustomContainer) { throw new System.NotImplementedException(); }