Create() 공개 정적인 메소드

Creates a new startable endpoint based on the provided configuration.
public static Create ( EndpointConfiguration configuration ) : Task
configuration EndpointConfiguration Configuration.
리턴 Task
예제 #1
0
        Task <IStartableEndpoint> PerformConfiguration(Action <EndpointConfiguration> moreConfiguration = null)
        {
            var configuration = new EndpointConfiguration(endpointNameToUse);

            configuration.DefineCriticalErrorAction(OnCriticalError);

            moreConfiguration?.Invoke(configuration);

            specifier.Customize(configuration);
            profileManager.ActivateProfileHandlers(configuration);

            return(Endpoint.Create(configuration));
        }
예제 #2
0
        Task <IStartableEndpoint> PerformConfiguration(Action <EndpointConfiguration> moreConfiguration = null)
        {
            var loggingConfigurers = profileManager.GetLoggingConfigurer();

            foreach (var loggingConfigurer in loggingConfigurers)
            {
                loggingConfigurer.Configure(specifier);
            }

            var configuration = new EndpointConfiguration(endpointNameToUse);

            SetSlaFromAttribute(configuration, specifier);

            configuration.DefineCriticalErrorAction(OnCriticalError);

            moreConfiguration?.Invoke(configuration);

            specifier.Customize(configuration);
            RoleManager.TweakConfigurationBuilder(specifier, configuration);
            profileManager.ActivateProfileHandlers(configuration);

            return(Endpoint.Create(configuration));
        }