You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attribute can later on be allowed to be placed on class level (or add property to EnableClientAccess attribute)
The same attribute can be used by both code generation and hosting (same pros as allowing name on EnableClientAccess)
Cons:
Not very discoverable
Questions:
Is it ok to only allow at assembly level to begin (yes)
Should the attribute be taken from the "linked server project" and have it affect all domainservices in all projects, or should it be from same assembly as domainservice ?
start with only looking at "linked server project" ?, but what does it mean for "hosting" code and how do we know it?
Client Side
1. manual setting on BinaryHttpDomainClientFactory
Should we add a setting similar to below ?
it would have to "rewrite" any url passed into DomainContext constructor
DomainContext.DomainClientFactory =new BinaryHttpDomainClientFactory(...){// Property or constructor parameter ?// Needs to default to WCF if not specified so it works with old "WCF" backendUrlScheme= UrlScheme.FullName
}
2. Should we add a setting to the code generation =
If we add a msbuild parameter (or maybe assembly attribute in server project) we can change to code generation to emit the new kind of UrlScheme
NOTE: The BinaryHttpDomainClient needs to stop adding "/binary" if the url does not contain ".svc"
(We should probably make sure that "suffix" )
1. Manual service paths
Should we allow both A and B ?
The text was updated successfully, but these errors were encountered:
fyi: I added a short section about having an assembly level attribute and try to have it affect both the server and client without any other public api changes
The current Uri schema of "NAMESPACE-TYPENAME.csv/binary/MethodName" is quite long/verbose and can be simplified.
Some of the current issues are that
Proposed Solution
1. Manual service paths
A: Allow specifying paths at startup configration
Uri
to the DomainContextB; Allow specifying name via attributes
similar to now AspNetMvc allows name to be configured for
[Route("Name")]
This approach means we should/can also
2. New Naming schemes
We add 2 new url naming options
With the following additional variants for backwards compatibility
Configuration
1. Server side
Should we do a "builder" api?
2. And/or options
If so
Action<**Option>
parameter or by aConfigure[Options](Action<**> )
on a build class3. Attribute based
Add an (assembly level) attribute that specify the endpoint scheme.
Attribute name should probably be something like:
[Default]DomainService[Endpoint][Route][***]Attribute
Possible enum names
Pros:
Cons:
Questions:
Client Side
1. manual setting on BinaryHttpDomainClientFactory
it would have to "rewrite" any url passed into DomainContext constructor
2. Should we add a setting to the code generation =
If we add a msbuild parameter (or maybe assembly attribute in server project) we can change to code generation to emit the new kind of UrlScheme
(We should probably make sure that "suffix" )
1. Manual service paths
Should we allow both A and B ?
The text was updated successfully, but these errors were encountered: