/// <summary> /// Creates the stream value for this type. /// </summary> /// <param name="value">The value.</param> /// <param name="descriptor">The stream descriptor</param> /// <returns>Newly created value.</returns> public AstoriaQueryStreamValue CreateValue(byte[] value, WrappedStreamDescriptor descriptor) { #if WINDOWS_PHONE throw new TaupoNotSupportedException("Stream values are not supported on Windows Phone"); #else var streamLink = descriptor.StreamLink; return(this.CreateValue(value, streamLink.ContentType, streamLink.ETag, streamLink.EditLink, streamLink.SelfLink)); #endif }
/// <summary> /// Creates the stream value for this type. /// </summary> /// <param name="value">The value.</param> /// <param name="descriptor">The stream descriptor</param> /// <returns>Newly created value.</returns> public AstoriaQueryStreamValue CreateValue(byte[] value, WrappedStreamDescriptor descriptor) { var streamLink = descriptor.StreamLink; return(this.CreateValue(value, streamLink.ContentType, streamLink.ETag, streamLink.EditLink, streamLink.SelfLink)); }