Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Postsharp OnMethodBoundaryAspect を使用する場合、特定のメソッドへの呼び出しを開始した呼び出しアセンブリを取得する方法はありますか? GetCallingAssembly は、呼び出されているメソッドが含まれているアセンブリを返すだけです。
注 - postsharp フォーラムで問題が発生しています。そうでなければ、そこに投稿したはずです。
いいえ; 道はない。
唯一の方法は、System.Diagnostics.StackTraceを使用してスタックをウォークすることです。