Пример #1
0
        public static Settings WithActionNameStrategy(ActionNameStrategy ans)
        {
            return(new Settings()
            {
                ClientNamespace = "MyNS",
                ContainerClassName = "MyClient",
                ContainerNameStrategy = ContainerNameStrategy.None,
                ActionNameStrategy = ans,

                DataAnnotationsToComments = true,
                HandleHttpRequestHeaders = true,
            });
        }
Пример #2
0
 public static Settings WithActionNameStrategy(ActionNameStrategy ans)
 {
     return(new Settings()
     {
         ClientNamespace = "MyNS",
         ContainerClassName = "Misc",
         ContainerNameStrategy = ContainerNameStrategy.None,
         ActionNameStrategy = ans,
         GenerateBothAsyncAndSync = true,
         DecorateDataModelWithSerializable = true,
         UseEnsureSuccessStatusCodeEx = true,
         DataAnnotationsEnabled = true,
         DataAnnotationsToComments = true,
         HandleHttpRequestHeaders = true,
     });
 }