コード例 #1
0
 public IHttpHandler GetHttpHandler(RequestContext requestContext)
 {
     var handler= new RandomAvatarHandler()
     {
         RequestContext = requestContext,
         FixedSeed= FixedSeed
     };
     if (FixedSeed)
     {
         var seed = (requestContext.RouteData.Values["seed"] ?? "").ToString();
         handler.Seed = seed;
     }
     return handler;
 }
コード例 #2
0
        public IHttpHandler GetHttpHandler(RequestContext requestContext)
        {
            var handler = new RandomAvatarHandler()
            {
                RequestContext = requestContext,
                FixedSeed      = FixedSeed
            };

            if (FixedSeed)
            {
                var seed = (requestContext.RouteData.Values["seed"] ?? "").ToString();
                handler.Seed = seed;
            }
            return(handler);
        }