private void SetLinks(HttpRequestMessage req, FilterFromInvokeContext context)
        {
            var uris = context.OtherSpecifications.Select(os => new DomainTypeRelType(new UriMtHelper(OidStrategy, req, os)).GetUri().AbsoluteUri).ToArray();

            var tempLinks = new List <LinkRepresentation> {
                LinkRepresentation.Create(OidStrategy, SelfRelType,
                                          Flags,
                                          new OptionalProperty(JsonPropertyNames.Arguments,
                                                               MapRepresentation.Create(new OptionalProperty(context.ParameterId, uris.Select(uri =>
                                                                                                                                              MapRepresentation.Create(new OptionalProperty(JsonPropertyNames.Href,
                                                                                                                                                                                            uri))).ToArray()))))
            };

            Links = tempLinks.ToArray();
        }
 public static FilterFromInvokeRepresentation Create(IOidStrategy oidStrategy, HttpRequestMessage req, FilterFromInvokeContext context, RestControlFlags flags)
 {
     return(new FilterFromInvokeRepresentation(oidStrategy, req, context, flags));
 }
 private void SetScalar(FilterFromInvokeContext context)
 {
     Id = context.Id;
 }
 private void SetValue(HttpRequestMessage req, FilterFromInvokeContext context)
 {
     Id    = context.Id;
     Value = context.Value.Select(v => CreateDomainLink(OidStrategy, req, v)).ToArray();
 }
 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();
 }