Reputation: 22692
Why is this code added to MetadataTypesHandler.ProcessRequest()
in ORMLite for ServiceStack?
httpRes.ContentType = "application/x-ssz-metatypes";
var encJson = CryptUtils.Encrypt(EndpointHostConfig.PublicKey, json, RsaKeyLengths.Bit2048);
httpRes.Write(encJson);
Looks like it's signing the page but the content type is non-standard.
Upvotes: 1
Views: 44
Reputation: 143319
That code lives in ServiceStack project itself, it doesn't have nothing to do with OrmLite. That code is essentially the beginning part of this future feature to provide enough metadata suitable for being able to code-gen DTOs locally as a substitute for sharing dlls. Because it involves code-gen from a remote source it's encrypted to give us better security/control on how and what gets code-gen'ed.
Upvotes: 1