AspComet.MessageHandlerFactory.GetMessageHandler C# (CSharp) Method

GetMessageHandler() public method

public GetMessageHandler ( string channelName ) : IMessageHandler
channelName string
return IMessageHandler
        public IMessageHandler GetMessageHandler(string channelName)
        {
            if (string.IsNullOrEmpty(channelName))
            {
                return new ExceptionHandler("Empty channel field in request");
            }

            if (channelName.StartsWith("/meta/"))
            {
                return this.GetMetaHandler(channelName);
            }

            if (channelName.StartsWith("/service/"))
            {
                return this.swallowHandler;
            }

            return this.forwardingHandler;
        }