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.
すべてのリクエストに対して OpenRasta でデフォルトのコーデックを設定したいと考えています。つまり、他の方法を使用して他のコーデックが見つからない場合、カスタム JSON コーデックをデフォルトとして使用したいと考えています。これをパイプラインでどのように配線しますか?
ResourceSpace.Has.ResourcesOfType<object>() .WithoutUri .TranscodedBy<MyCustomCodec>() .ForMediaType("application/json");
それはそれを行う必要があります。