示例#1
0
        public static GetMongoZipPipelineArgs Run(MongoCollection collection, int zipCode)
        {
            var args = new GetMongoZipPipelineArgs(collection, zipCode);

            CorePipeline.Run("zipCode.getMongoZip", args);
            return(args);
        }
 public abstract void Process(GetMongoZipPipelineArgs args);
示例#3
0
        public override void Process(GetMongoZipPipelineArgs args)
        {
            var query = GetZipQuery <SimpleZipCode>(args.ZipCode);

            args.ZipData = args.ZipCodesCollection.FindOneAs <SimpleZipCode>(query);
        }