Exemplo n.º 1
0
        public static IConsumeHandler Create(PushPositionType positionType)
        {
            IConsumeHandler handler = null;

            switch (positionType)
            {
            case PushPositionType.User:
                //handler = new UserConsumeHandler();
                throw new NotImplementedException("UserConsumeHandler");

            case PushPositionType.Near:
                handler = new NearCircleConsumeHandler();
                break;

            case PushPositionType.Area:
                throw new NotImplementedException("AreaConsumeHandler");

            default:
                throw new NotImplementedException("ConsumeHandler");
            }
            return(handler);
        }
Exemplo n.º 2
0
 public static string GetQueueName(PushPositionType positionType)
 {
     return(QUEUE_SYMBOLS[positionType]);
 }