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);
public override void Process(GetMongoZipPipelineArgs args) { var query = GetZipQuery <SimpleZipCode>(args.ZipCode); args.ZipData = args.ZipCodesCollection.FindOneAs <SimpleZipCode>(query); }