Exemplo n.º 1
0
        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
        }
Exemplo n.º 2
0
 IConfigureComponents AdaptContainerForRegistrationPhase(MyCustomContainer myCustomContainer)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 3
0
 IBuilder AdaptContainerForResolutionPhase(MyCustomContainer myCustomContainer)
 {
     throw new System.NotImplementedException();
 }