예제 #1
0
 /// <summary>
 /// Creates a context uri builder for the current output context.
 /// </summary>
 /// <returns>The context uri builder to use when writing.</returns>
 internal ODataContextUriBuilder CreateContextUriBuilder()
 {
     return(ODataContextUriBuilder.Create(
                this.messageWriterSettings.MetadataDocumentUri,
                this.writingResponse && this.ContextUrlLevel != ODataContextUrlLevel.None));
 }
 private void InitalizeBuilder()
 {
     this.metadataDocumentBaseUri = new Uri(MetadataDocumentUriString);
     this.responseContextUriBuilder = ODataContextUriBuilder.Create(this.metadataDocumentBaseUri, true);
     this.requestContextUriBuilder = ODataContextUriBuilder.Create(this.metadataDocumentBaseUri, false);
     this.builderWithNoMetadataDocumentUri = ODataContextUriBuilder.Create(null, false);
 }