public object Convert(IConversionRequest request) { var session = request.Get<MongoSession>().Session; var collection = session.GetCollection(_type, _type.Name.ToLowerInvariant()); var query = Query.EQ("_id", request.Text); return collection.FindOneAs(_type, query); }
public object Convert(IConversionRequest request) { var session = request.Get <MongoSession>().Session; var collection = session.GetCollection(_type, _type.Name.ToLowerInvariant()); var query = Query.EQ("_id", request.Text); return(collection.FindOneAs(_type, query)); }
public override object Convert(IConversionRequest request) { return request.Get<WidgetFinderService>().Build(request.Text); }
public override object Convert(IConversionRequest request) { return(request.Get <WidgetFinderService>().Build(request.Text)); }