<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/serialising-asp-net-method-calls-for-later-execution-6iruxjyas" -->

---
title: Serialising ASP.NET method calls for later execution
description: Learn how to serialise ASP.NET method calls for later execution by storing the type of object, the method, and the parameter values. Find out how to...
canonical: https://daily.dev/posts/serialising-asp-net-method-calls-for-later-execution-6iruxjyas
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Serialising ASP.NET method calls for later execution | daily.dev
og:description: Learn how to serialise ASP.NET method calls for later execution by storing the type of object, the method, and the parameter values. Find out how to...
og:url: https://daily.dev/posts/serialising-asp-net-method-calls-for-later-execution-6iruxjyas
og:image: https://api.daily.dev/og/posts/6irUXjYAS.png
og:image:alt: Serialising ASP.NET method calls for later execution
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Serialising ASP.NET method calls for later execution

**[John Reilly](https://daily.dev/sources/johnnyreilly)** · 5 min read · 30 upvotes · 3 comments

## Summary

Learn how to serialise ASP.NET method calls for later execution by storing the type of object, the method, and the parameter values. Find out how to deserialise and execute the method call using reflection and the MethodCallInvoker class.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://johnnyreilly.com/serialising-aspnet-method-calls-for-later-execution>

## Community discussion

Top comments from developers on daily.dev.

**@lezli01** · 3 upvotes

> Good project for experimenting, and great example of what a production level source should never contain.

**@gilles\_tourreau** · 2 upvotes

> This is a good article for implementing a simple peace of code, which allow any hacker to call any .NET method remotely just by changing values in database... 🤣

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#.net](https://daily.dev/tags/.net), [#c#](https://daily.dev/tags/c#)

[View this post on daily.dev](https://daily.dev/posts/serialising-asp-net-method-calls-for-later-execution-6iruxjyas)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Serialising ASP.NET method calls for later execution","url":"https://daily.dev/posts/serialising-asp-net-method-calls-for-later-execution-6iruxjyas","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/serialising-asp-net-method-calls-for-later-execution-6iruxjyas"},"datePublished":"2024-05-14T07:48:01.798Z","dateModified":"2024-05-14T07:48:00.044Z","description":"Learn how to serialise ASP.NET method calls for later execution by storing the type of object, the method, and the parameter values. Find out how to...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/318b6e3dd84d68453762910ac03fd098?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/318b6e3dd84d68453762910ac03fd098?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"John Reilly","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"John Reilly","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c1915bb9b8334d82853ec8e5f3a9532f","url":"https://daily.dev/sources/johnnyreilly"},"commentCount":3,"discussionUrl":"https://daily.dev/posts/serialising-asp-net-method-calls-for-later-execution-6iruxjyas","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":30},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":3}],"keywords":".net,c#","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"John Reilly","item":"https://daily.dev/sources/johnnyreilly"},{"@type":"ListItem","position":3,"name":"Serialising ASP.NET method calls for later execution"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/serialising-asp-net-method-calls-for-later-execution-6iruxjyas","comment":[{"@type":"Comment","text":"Good project for experimenting, and great example of what a production level source should never contain.","datePublished":"2024-05-17T15:47:05.546Z","url":"https://daily.dev/posts/6irUXjYAS#c-cp9yCL0R0","author":{"@type":"Person","name":"László Szabó","url":"https://daily.dev/lezli01","image":"https://lh3.googleusercontent.com/a/ACg8ocKj3v7EFYJoXUUuro6ALF9fD3RTRATiBpBOVcOzqro4fy6bWqMm=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"This is a good article for implementing a simple peace of code, which allow any hacker to call any .NET method remotely just by changing values in database… 🤣","datePublished":"2024-05-17T15:51:21.423Z","url":"https://daily.dev/posts/6irUXjYAS#c-o6aQkcJ00","author":{"@type":"Person","name":"Gilles TOURREAU","url":"https://daily.dev/gilles_tourreau","image":"https://media.daily.dev/image/upload/s--l1FULdRd--/f_auto,q_auto/v1701818537/avatars/avatar_2fEbsW3xTuZl9UDNYmiSL"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}]}
```

