davideuler / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
1 stars 0 forks source link

Should be able to specify the ServiceContract SessionMode #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm sure this is just the start of a much longer request to allow protobuf-
net users to specify all the specific WCF settings (see below) for each 
generated interface or object, but for now - I really needed to be able to 
specify the SessionMode on my service.

The attached csharp.xslt adds a new template parameter named "sessionMode" 
that can be set to "allowed", "notAllowed", or "required".  The xslt is 
happy if sessionMode is not specified, but will return an error if it is 
set to anything except the three values listed above.

It would be nice if we could specify stuff like this in specially 
formatted comments inside of the .proto file... although, that would 
require protogen to parse those comments and then pass their data in to 
the xslt.

Original issue reported on code.google.com by scoo...@gmail.com on 11 Aug 2009 at 12:06

Attachments:

GoogleCodeExporter commented 9 years ago
Actually, .proto has "custom options" support. What I need to do is sit down 
and write 
a custom options definition that supersedes the existing command line approach, 
allowing fine-grained control. I fully accept the need to do this; but to set 
expectation: I'm in a "crunch" period on the day job, so I'm a bit maxed. 
Should be 
soon(ish) though.

Original comment by marc.gravell on 11 Aug 2009 at 10:11

GoogleCodeExporter commented 9 years ago
No rush... just wanted to document the request.

Thanks!

Original comment by scoo...@gmail.com on 11 Aug 2009 at 10:14