AspComet.CometHttpHandler.GetMessageBus C# (CSharp) 메소드

GetMessageBus() 개인적인 정적인 메소드

private static GetMessageBus ( ) : IMessageBus
리턴 IMessageBus
        private static IMessageBus GetMessageBus()
        {
            IServiceLocator serviceLocator = ServiceLocator.Current;
            if (serviceLocator == null)
            {
                throw new ConfigurationErrorsException("AspComet has not been configured. Either use the default configuration or set up a service locator");
            }

            return serviceLocator.GetInstance<IMessageBus>();
        }