Skip to content

First batch of xref link fixes (#3682) - #3689

Merged
mairaw merged 10 commits into
dotnet:masterfrom
VenomShifter:master
Nov 27, 2017
Merged

mairaw merged 10 commits into
dotnet:masterfrom
VenomShifter:master

Conversation

@VenomShifter

@VenomShifter VenomShifter commented Nov 14, 2017 •

Copy link
Copy Markdown
Contributor

First batch of xref fixes. Even though I took extra precautions in keeping the format the same, some xref formats might not be the one that was intended to be used. Please point them out for me and I'll update them as soon as possible (or feel free to update them yourself!).
@dnfclas

dnfclas commented Nov 14, 2017 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

The SQL generation module of an [!INCLUDE[adonet_ef](../../../../../includes/adonet-ef-md.md)] provider translates a given query command tree into a single SQL SELECT statement that targets a SQL:1999-compliant database. The generated SQL should have as few nested queries as possible. The SQL generation module should not simplify the output query command tree. The [!INCLUDE[adonet_ef](../../../../../includes/adonet-ef-md.md)] will do this, for example by eliminating joins and collapsing consecutive filter nodes.

The <!--zz<xref:System.Data.Common.DBProviderServices> --> `System.Data.Common.DBProviderServices` class is the starting point for accessing the SQL generation layer to convert command trees into <!--zz<xref:System.Data.Common.DbCommands>--> `System.Data.Common.DbCommands`.
The <xref:System.Data.Common.DBProviderServices> class is the starting point for accessing the SQL generation layer to convert command trees into <xref:System.Data.Common.DbCommands>.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason why they were commented out was because there was something wrong with the links before. So in this case for example, DBProviderServices should be DbProviderServices.
There is no DbCommands class, so probably it should be DbCommand. (You could add a noun after to create the plural like DbCommand objects)
I'll go through them all soon to help you with this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see! After we've fixed these, I'll make sure to test if the links actually reference to existing pages in the next batches.

1. <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement.FindCriteria%2A>, which is used to describe the service you want to call.

2. <!--zz <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement.DiscoveryEndpoint%2A> --> `DiscoveryEndpoint`, which specifies the discovery endpoint to send discovery messages to.
2. xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement.DiscoveryEndpoint%2A> which specifies the discovery endpoint to send discovery messages to.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing angle bracket for the xref link. Should probably be System.ServiceModel.Discovery.DiscoveryClientBindingElement.DiscoveryEndpointProvider instead

@VenomShifter VenomShifter Nov 15, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read the styling guide, but I couldn't figure out when (not) to use the * (%2A) symbol, so I kept those in there.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can keep the %2A. It was more about the name of property that is different. Sorry for not being clear. Usually for types we don't use %2A or when we're talking about a specific API. For things that can have multiple variations like method or constructors and we want to refer to that in a generic way, then we use the %2A

@mairaw mairaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making these changes. Here are some of my review comments to help you!

---
# ISymUnmanagedBinder::GetReaderFromStream Method
Given a metadata interface and a stream that contains the symbol store, returns the correct <<!--zz xref:ISymUnmanagedReader --> `ISymUnmanagedReader`> structure that will read the debugging symbols from the given symbol store.
Given a metadata interface and a stream that contains the symbol store, returns the correct <xref:ISymUnmanagedReader> structure that will read the debugging symbols from the given symbol store.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this actually should be a link to this topic instead: https://docs.microsoft.com/en-us/dotnet/framework/unmanaged-api/diagnostics/isymunmanagedreader-interface

so change this to:
[ISymUnmanagedReader](isymunmanagedreader-interface.md)

This applies to all the changes for <xref:ISymUnmanagedReader>

- <xref:System.ServiceModel.Activities.Receive.ServiceContractName%2A>

- <!--zz <xref:System.ServiceModel.Activities.Receive.OperationContractName%2A> --> `System.ServiceModel.Activities.Receive.OperationContractName`
- <xref:System.ServiceModel.Activities.Receive.OperationContractName%2A>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps it should be OperationName

- <xref:System.ServiceModel.Activities.Receive.Action%2A>

- <!--zz <xref:System.ServiceModel.Activities.Receive.ValueType%2A> --> `System.ServiceModel.Activities.Receive.ValueType`
- xref:System.ServiceModel.Activities.Receive.ValueType%2A>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what would be the replacement here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming it refers to the Recieve.ValueType property found here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. That indicates that the API page was published for a preview release but later the API got removed. So these links should be removed instead.

- <xref:System.ServiceModel.Activities.SendReply.Action%2A>

- <!--zz <xref:System.ServiceModel.Activities.SendReply.ValueType%2A>--> `System.ServiceModel.Activities.SendReply.ValueType`
- xref:System.ServiceModel.Activities.SendReply.ValueType%2A>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what would be the replacement here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming it refers to the SendReply.ValueType property found here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

2. xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement.DiscoveryEndpoint%2A> which specifies the discovery endpoint to send discovery messages to.

The <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement.FindCriteria%2A> property allows you to specify the service contract you are searching for, any required scope URIs, and the maximum number of time to attempt to open the channel. The contract type is specified by calling the constructor <<!--zz <xref:System.ServiceModel.Discovery.FindCriteria%2A> --> `FindCriteria`> . Scope URIs can be added to the <xref:System.ServiceModel.Discovery.FindCriteria.Scopes%2A> property. The <xref:System.ServiceModel.Discovery.FindCriteria.MaxResults%2A> property allows you to specify the maximum number of results to which the client tries to connect to. When a probe response is received the client attempts to open the channel using the endpoint address from the probe response. If an exception occurs the client moves on to the next probe response, waiting for more responses to be received if necessary. It continues to do this until the channel is successfully opened or the maximum number of results is reached. [!INCLUDE[crabout](../../../../includes/crabout-md.md)] these settings, see <<!--zz <xref:System.ServiceModel.Discovery.FindCriteria%2A> --> `FindCriteria`>.
The <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement.FindCriteria%2A> property allows you to specify the service contract you are searching for, any required scope URIs, and the maximum number of time to attempt to open the channel. The contract type is specified by calling the constructor <xref:System.ServiceModel.Discovery.FindCriteria%2A>. Scope URIs can be added to the <xref:System.ServiceModel.Discovery.FindCriteria.Scopes%2A> property. The <xref:System.ServiceModel.Discovery.FindCriteria.MaxResults%2A> property allows you to specify the maximum number of results to which the client tries to connect to. When a probe response is received the client attempts to open the channel using the endpoint address from the probe response. If an exception occurs the client moves on to the next probe response, waiting for more responses to be received if necessary. It continues to do this until the channel is successfully opened or the maximum number of results is reached. [!INCLUDE[crabout](../../../../includes/crabout-md.md)] these settings, see <xref:System.ServiceModel.Discovery.FindCriteria%2A>.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1st System.ServiceModel.Discovery.FindCriteria%2A -> System.ServiceModel.Discovery.FindCriteria.%23ctor%2A
2nd System.ServiceModel.Discovery.FindCriteria%2A -> System.ServiceModel.Discovery.FindCriteria

The <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement.DiscoveryEndpoint%2A> property allows you to specify the discovery endpoint to use. Normally this is a <xref:System.ServiceModel.Discovery.UdpDiscoveryEndpoint>, but it can be any valid endpoint.

When you are creating the binding to use to communicate with the service, you must be careful to use the exact same binding as the service. The only difference is the client binding has a <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement> on the top of the stack. If service is using one of the system-provided bindings, create a new <xref:System.ServiceModel.Channels.CustomBinding> and pass in the system-provided binding to the <!--zz <xref:System.ServiceModel.CustomBinding.CustomBinding%2A> `CustomBinding` --> constructor. Then you can add the <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement> by calling `Insert` on the <!--zz <xref:System.ServiceModel.Channels.Binding.Elements%2A> --> `Elements` property.
When you are creating the binding to use to communicate with the service, you must be careful to use the exact same binding as the service. The only difference is the client binding has a <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement> on the top of the stack. If service is using one of the system-provided bindings, create a new <xref:System.ServiceModel.Channels.CustomBinding> and pass in the system-provided binding to the <xref:System.ServiceModel.CustomBinding.CustomBinding%2A> constructor. Then you can add the <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement%2A> by calling `Insert` on the <xref:System.ServiceModel.Channels.Binding.Elements%2A> property.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.ServiceModel.CustomBinding.CustomBinding%2A -> System.ServiceModel.Channels.CustomBinding.%23ctor%2A

Demonstrates how to implement a binding that stacks <xref:System.ServiceModel.Channels.HttpTransportBindingElement> or the <xref:System.ServiceModel.Channels.HttpsTransportBindingElement> on top of the <xref:System.ServiceModel.Channels.BinaryMessageEncodingBindingElement>.

<!--zz <xref:System.ServiceModel.WSStreamedHttpBinding> --> `System.ServiceModel.WSStreamedHttpBinding`
<xref:System.ServiceModel.WSStreamedHttpBinding>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should actually link to a topic:
[WSStreamedHttpBinding](wsstreamedhttpbinding.md)

- `[OverloadGroup]` puts together a set of arguments, so that the user of the activity can choose between using one set or another. The user cannot use arguments from different Overload Groups in the same instance.

After setting up different workflows, call <xref:System.Activities.Validation.ActivityValidationServices.Validate%2A> which returns a <xref:System.Activities.Validation.ValidationResults> collection of <!--zz <xref:System.Activities.Validation.ConstraintViolation>--> `System.Activities.Validation.ConstraintViolation`. Print the <!--zz <xref:System.Activities.Validation.ConstraintViolation>--> `System.Activities.Validation.ConstraintViolation` objects to the console.
After setting up different workflows, call <xref:System.Activities.Validation.ActivityValidationServices.Validate%2A> which returns a <xref:System.Activities.Validation.ValidationResults> collection of <xref:System.Activities.Validation.ConstraintViolation>. Print the <xref:System.Activities.Validation.ConstraintViolation> objects to the console.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably just be Constraint

---
# Using the InvokeMethod Activity
This sample demonstrates how to use the <!--zz <xref:System.Activities.Statements.InvokeMethod%601> -->[<code>System.Activities.Statements.InvokeMethod\`1</code>](https://msdn.microsoft.com/library/dd647677.aspx) activity to invoke public methods in public classes. The <!--zz <xref:System.Activities.Statements.InvokeMethod%601> -->[<code>System.Activities.Statements.InvokeMethod\`1</code>](https://msdn.microsoft.com/library/dd647677.aspx) activity allows a workflow to call methods against objects, pass in parameters, get the return value, specify types for generic methods, and specify whether the method is synchronous or asynchronous.
This sample demonstrates how to use the <xref:System.Activities.Statements.InvokeMethod%601> activity to invoke public methods in public classes. The <xref:System.Activities.Statements.InvokeMethod%601> activity allows a workflow to call methods against objects, pass in parameters, get the return value, specify types for generic methods, and specify whether the method is synchronous or asynchronous.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this class was removed from the product after being added for a preview release. We might have to delete this topic.

@VenomShifter VenomShifter Nov 15, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Want me to revert the changes for now?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you could, please!

The .NET Framework for Windows Store apps is a subset of the full .NET Framework. Because of security and other requirements for Windows Store apps, you cannot use the full set of .NET Framework APIs to open and read files. For more information, see [.NET for Windows Store apps overview](http://msdn.microsoft.com/library/windows/apps/br230302.aspx). However, you may want to use .NET Framework APIs for other stream manipulation operations. To manipulate these streams, you may find it necessary to convert between a .NET Framework stream type such as <xref:System.IO.MemoryStream> or <xref:System.IO.FileStream>, and a Windows Runtime stream such as [IInputStream](http://msdn.microsoft.com/library/windows/apps/windows.storage.streams.iinputstream.aspx), [IOutputStream](http://msdn.microsoft.com/library/windows/apps/windows.storage.streams.ioutputstream.aspx), or [IRandomAccessStream](http://msdn.microsoft.com/library/windows/apps/windows.storage.streams.irandomaccessstream.aspx).

The <!--zz <xref:System.IO.WindowsRuntimeStreamExtensions>--> `System.IO.WindowsRuntimeStreamExtensions` class contains methods that make these conversions easy. However, there are underlying differences between streams in the .NET Framework and the Windows Runtime that will affect the results of using these methods. The details are described in the following sections.
The <xref:System.IO.WindowsRuntimeStreamExtensions> class contains methods that make these conversions easy. However, there are underlying differences between streams in the .NET Framework and the Windows Runtime that will affect the results of using these methods. The details are described in the following sections.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this API is not part of the docs yet. let's leave untouched for now.

@VenomShifter

Copy link
Copy Markdown
Contributor Author

@mairaw Files have been updated according to your reviews.

|Method|Description|
|------------|-----------------|
|[GetReaderForFile Method](../../../../docs/framework/unmanaged-api/diagnostics/isymunmanagedbinder-getreaderforfile-method.md)|Given a metadata interface and a file name, returns the correct <<!--zz xref:ISymUnmanagedReader --> `ISymUnmanagedReader`> structure that will read the debugging symbols associated with the module.|
|[GetReaderForFile Method](../../../../docs/framework/unmanaged-api/diagnostics/isymunmanagedbinder-getreaderforfile-method.md)|Given a metadata interface and a file name, returns the correct <xref:ISymUnmanagedReader> structure that will read the debugging symbols associated with the module.|

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change xref:ISymUnmanagedReader to [ISymUnmanagedReader](isymunmanagedreader-interface.md) like in the previous topic

2. <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement.DiscoveryEndpointProvider%2A> which specifies the discovery endpoint to send discovery messages to.

The <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement.FindCriteria%2A> property allows you to specify the service contract you are searching for, any required scope URIs, and the maximum number of time to attempt to open the channel. The contract type is specified by calling the constructor <<!--zz <xref:System.ServiceModel.Discovery.FindCriteria%2A> --> `FindCriteria`> . Scope URIs can be added to the <xref:System.ServiceModel.Discovery.FindCriteria.Scopes%2A> property. The <xref:System.ServiceModel.Discovery.FindCriteria.MaxResults%2A> property allows you to specify the maximum number of results to which the client tries to connect to. When a probe response is received the client attempts to open the channel using the endpoint address from the probe response. If an exception occurs the client moves on to the next probe response, waiting for more responses to be received if necessary. It continues to do this until the channel is successfully opened or the maximum number of results is reached. [!INCLUDE[crabout](../../../../includes/crabout-md.md)] these settings, see <<!--zz <xref:System.ServiceModel.Discovery.FindCriteria%2A> --> `FindCriteria`>.
The <xref:System.ServiceModel.Discovery.FindCriteria.%23ctor%2A> property allows you to specify the service contract you are searching for, any required scope URIs, and the maximum number of time to attempt to open the channel. The contract type is specified by calling the constructor <xref:System.ServiceModel.Discovery.FindCriteria>. Scope URIs can be added to the <xref:System.ServiceModel.Discovery.FindCriteria.Scopes%2A> property. The <xref:System.ServiceModel.Discovery.FindCriteria.MaxResults%2A> property allows you to specify the maximum number of results to which the client tries to connect to. When a probe response is received the client attempts to open the channel using the endpoint address from the probe response. If an exception occurs the client moves on to the next probe response, waiting for more responses to be received if necessary. It continues to do this until the channel is successfully opened or the maximum number of results is reached. [!INCLUDE[crabout](../../../../includes/crabout-md.md)] these settings, see <xref:System.ServiceModel.Discovery.FindCriteria%2A>.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<xref:System.ServiceModel.Discovery.FindCriteria%2A> -> <xref:System.ServiceModel.Discovery.FindCriteria>

The <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement.DiscoveryEndpointProvider%2A> property allows you to specify the discovery endpoint to use. Normally this is a <xref:System.ServiceModel.Discovery.UdpDiscoveryEndpoint>, but it can be any valid endpoint.

When you are creating the binding to use to communicate with the service, you must be careful to use the exact same binding as the service. The only difference is the client binding has a <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement> on the top of the stack. If service is using one of the system-provided bindings, create a new <xref:System.ServiceModel.Channels.CustomBinding> and pass in the system-provided binding to the <!--zz <xref:System.ServiceModel.CustomBinding.CustomBinding%2A> `CustomBinding` --> constructor. Then you can add the <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement> by calling `Insert` on the <!--zz <xref:System.ServiceModel.Channels.Binding.Elements%2A> --> `Elements` property.
When you are creating the binding to use to communicate with the service, you must be careful to use the exact same binding as the service. The only difference is the client binding has a <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement> on the top of the stack. If service is using one of the system-provided bindings, create a new <xref:System.ServiceModel.Channels.CustomBinding> and pass in the system-provided binding to the <xref:System.ServiceModel.Channels.CustomBinding.%23ctor%2A> constructor. Then you can add the <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement%2A> by calling `Insert` on the <xref:System.ServiceModel.Channels.Binding.Elements%2A> property.

@mairaw mairaw Nov 21, 2017 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement%2A> -> <xref:System.ServiceModel.Discovery.DiscoveryClientBindingElement>

<xref:System.ServiceModel.Channels.Binding.Elements%2A> doesn't exist. Wondering if it should go to this API instead: https://docs.microsoft.com/en-us/dotnet/api/system.servicemodel.channels.custombinding.elements

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xref:System.ServiceModel.Channels.Binding.Elements%2A doesn't exist. Wondering if it should go to this API instead: https://docs.microsoft.com/en-us/dotnet/api/system.servicemodel.channels.custombinding.elements

I think so too, yes! Thank you for pointing that out!

@VenomShifter

Copy link
Copy Markdown
Contributor Author

@mairaw Your requested changes have been committed. Thanks for all the help!

@mairaw

mairaw commented Nov 21, 2017

Copy link
Copy Markdown
Contributor

Resolved some merge conflicts. I'll review it again as soon as build finishes. Thanks @RutgerM!

@mairaw mairaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making these fixes @RutgerM. I've fixed the last outstanding issues I found. Good to merge once build finishes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants