本文整理汇总了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();
}
示例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);
}
示例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();
};
}
示例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);
}
示例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));
}
示例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);
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}