I have a simple class:
public class Some
{
[F("some text")]
public void Foo()
{
//Do something
}
}
External code use my class by calling Foo method. It's search an attribute F, creates an instance of the Some class and then calls Foo method. Now I want that Foo method will be executed on the remote machine. How to solve? First solution is to use .net remoting tehnology, but its require special creation of the instance which I cant change. Another solution is rewrite my Foo method and call a web service method inside it, but I have a lot of methods and sometimes I need to run it localy. Third solution is to use something like Post sharp, but it's seems too complex.
Any ideas? :)