当前位置: 首页>>代码示例>>C#>>正文


C# Utility.RestControlFlags类代码示例

本文整理汇总了C#中RestfulObjects.Snapshot.Utility.RestControlFlags的典型用法代码示例。如果您正苦于以下问题:C# RestControlFlags类的具体用法?C# RestControlFlags怎么用?C# RestControlFlags使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RestControlFlags类属于RestfulObjects.Snapshot.Utility命名空间,在下文中一共展示了RestControlFlags类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MemberTypeRepresentation

 protected MemberTypeRepresentation(IOidStrategy oidStrategy, HttpRequestMessage req, PropertyTypeContextFacade propertyContext, RestControlFlags flags)
     : base(oidStrategy, flags) {
     SetScalars(propertyContext);
     SelfRelType = new TypeMemberRelType(RelValues.Self, new UriMtHelper(oidStrategy, req, propertyContext));
     SetExtensions();
     SetHeader();
 }
开发者ID:Robin--,项目名称:NakedObjectsFramework,代码行数:7,代码来源:MemberTypeRepresentation.cs

示例2: Create

 public static InlineCollectionRepresentation Create(IOidStrategy oidStrategy, HttpRequestMessage req, PropertyContextFacade propertyContext, IList<OptionalProperty> optionals, RestControlFlags flags) {
     var collectionRepresentationStrategy = new CollectionRepresentationStrategy(oidStrategy, req, propertyContext, flags);
     if (optionals.Count == 0) {
         return new InlineCollectionRepresentation(oidStrategy, collectionRepresentationStrategy);
     }
     return CreateWithOptionals<InlineCollectionRepresentation>(new object[] {oidStrategy, collectionRepresentationStrategy}, optionals);
 }
开发者ID:Robin--,项目名称:NakedObjectsFramework,代码行数:7,代码来源:InlineCollectionRepresentation.cs

示例3: RestSnapshot

 public RestSnapshot(IOidStrategy oidStrategy, ActionResultContextFacade actionResultContext, HttpRequestMessage req, RestControlFlags flags)
     : this(oidStrategy,actionResultContext, req, true) {
     populator = () => {
         representation = ActionResultRepresentation.Create(oidStrategy ,req, actionResultContext, flags);
         SetHeaders();
     };
 }
开发者ID:czcz1024,项目名称:NakedObjectsFramework,代码行数:7,代码来源:RestSnapshot.cs

示例4: ParameterRepresentation

 protected ParameterRepresentation(IOidStrategy oidStrategy, HttpRequestMessage req, IObjectFacade objectFacade, IActionParameterFacade parameter, RestControlFlags flags)
     : base(oidStrategy, flags) {
     SetName(parameter);
     SetExtensions(req, objectFacade, parameter, flags);
     SetLinks(req, objectFacade, parameter);
     SetHeader(objectFacade);
 }
开发者ID:Robin--,项目名称:NakedObjectsFramework,代码行数:7,代码来源:ParameterRepresentation.cs

示例5: MemberRepresentationStrategy

 protected MemberRepresentationStrategy(IOidStrategy oidStrategy, HttpRequestMessage req, PropertyContextFacade propertyContext, RestControlFlags flags)
     : base(oidStrategy ,flags) {
     this.req = req;
     this.propertyContext = propertyContext;
     objectUri = new UriMtHelper(oidStrategy ,req, propertyContext);
     self = new MemberRelType(RelValues.Self, new UriMtHelper(oidStrategy , req, propertyContext));
 }
开发者ID:Robin--,项目名称:NakedObjectsFramework,代码行数:7,代码来源:MemberRepresentationStrategy.cs

示例6: Create

 public static InlinePropertyRepresentation Create(IOidStrategy oidStrategy, HttpRequestMessage req, PropertyContextFacade propertyContext, IList<OptionalProperty> optionals, RestControlFlags flags) {
     if (!RestUtils.IsBlobOrClob(propertyContext.Specification) && !RestUtils.IsAttachment(propertyContext.Specification)) {
         optionals.Add(new OptionalProperty(JsonPropertyNames.Value, GetPropertyValue(oidStrategy ,req, propertyContext.Property, propertyContext.Target, flags)));
     }
     RestUtils.AddChoices(oidStrategy , req, propertyContext, optionals, flags);
     return CreateWithOptionals<InlinePropertyRepresentation>(new object[] {oidStrategy, new PropertyRepresentationStrategy(oidStrategy ,req, propertyContext, flags)}, optionals);
 }
开发者ID:Robin--,项目名称:NakedObjectsFramework,代码行数:7,代码来源:InlinePropertyRepresentation.cs

示例7: ActionRepresentationStrategy

 public ActionRepresentationStrategy(IOidStrategy oidStrategy, HttpRequestMessage req, ActionContextFacade actionContext, RestControlFlags flags)
     : base(oidStrategy, flags) {
     this.req = req;
     this.actionContext = actionContext;
     self = new MemberRelType(RelValues.Self, new UriMtHelper(oidStrategy, req, actionContext));
     parameterList = GetParameterList();
 }
开发者ID:Robin--,项目名称:NakedObjectsFramework,代码行数:7,代码来源:ActionRepresentationStrategy.cs

示例8: ActionResultRepresentation

 protected ActionResultRepresentation(IOidStrategy oidStrategy, HttpRequestMessage req, ActionResultContextFacade actionResult, RestControlFlags flags)
     : base(oidStrategy, flags) {
     SelfRelType = new ActionResultRelType(RelValues.Self, new UriMtHelper(OidStrategy, req, actionResult.ActionContext));
     SetResultType(actionResult);
     SetLinks(req, actionResult);
     SetExtensions();
     SetHeader();
 }
开发者ID:Robin--,项目名称:NakedObjectsFramework,代码行数:8,代码来源:ActionResultRepresentation.cs

示例9: ListRepresentation

 private ListRepresentation(IOidStrategy oidStrategy, ITypeFacade[] specs, HttpRequestMessage req, RestControlFlags flags)
     : base(oidStrategy, flags) {
     Value = specs.Select(s => CreateDomainLink(oidStrategy, req, s)).ToArray();
     SelfRelType = new TypesRelType(RelValues.Self, new UriMtHelper(oidStrategy, req));
     SetLinks(req);
     SetExtensions();
     SetHeader(true);
 }
开发者ID:priaonehaha,项目名称:NakedObjectsFramework,代码行数:8,代码来源:ListRepresentation.cs

示例10: FilterFromInvokeRepresentation

 protected FilterFromInvokeRepresentation(IOidStrategy oidStrategy, HttpRequestMessage req, FilterFromInvokeContext context, RestControlFlags flags)
     : base(oidStrategy, flags) {
     SelfRelType = new TypeActionFilterInvokeRelType(RelValues.Self, new UriMtHelper(oidStrategy, req, context));
     SetScalar(context);
     SetValue(req, context);
     SetLinks(req, context);
     SetExtensions();
     SetHeader();
 }
开发者ID:Robin--,项目名称:NakedObjectsFramework,代码行数:9,代码来源:FilterFromInvokeRepresentation.cs

示例11: ObjectRepresentation

 protected ObjectRepresentation(IOidStrategy oidStrategy, HttpRequestMessage req, ObjectContextFacade objectContext, RestControlFlags flags)
     : base(oidStrategy, flags) {
     var objectUri = new UriMtHelper(oidStrategy ,req, objectContext.Target);
     SetScalars(objectContext);
     SelfRelType = objectContext.Specification.IsService ? new ServiceRelType(RelValues.Self, objectUri) : new ObjectRelType(RelValues.Self, objectUri);
     SetLinksAndMembers(req, objectContext);
     SetExtensions(objectContext.Target);
     SetHeader(objectContext);
 }
开发者ID:Robin--,项目名称:NakedObjectsFramework,代码行数:9,代码来源:ObjectRepresentation.cs


注:本文中的RestfulObjects.Snapshot.Utility.RestControlFlags类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。