diff --git a/docs/framework/wcf/samples/custom-service-host.md b/docs/framework/wcf/samples/custom-service-host.md index 27ad860bd36e1..1c107de90e6a6 100644 --- a/docs/framework/wcf/samples/custom-service-host.md +++ b/docs/framework/wcf/samples/custom-service-host.md @@ -140,7 +140,7 @@ public class SelfDescribingServiceHostFactory : ServiceHostFactory To use a custom factory with a service implementation, we must add some additional metadata to the service’s .svc file. ```xml -<%@ServiceHost Service="Microsoft.ServiceModel.Samples.CalculatorService" +<% @ServiceHost Service="Microsoft.ServiceModel.Samples.CalculatorService" Factory="Microsoft.ServiceModel.Samples.SelfDescribingServiceHostFactory" language=c# Debug="true" %> ``` diff --git a/docs/framework/wcf/samples/discovery-security-sample.md b/docs/framework/wcf/samples/discovery-security-sample.md index 5ffe7047d5347..e5ff72b133386 100644 --- a/docs/framework/wcf/samples/discovery-security-sample.md +++ b/docs/framework/wcf/samples/discovery-security-sample.md @@ -40,7 +40,7 @@ The Discovery specification does not require that endpoints that participate in The secure channel listener creates input or duplex channels that verify the compact signature in received messages. To verify the signature, the `KeyId` specified in the compact signature attached to the message is used to select a certificate from the specified store. If the message does not have a signature or the signature check fails, the messages are dropped. To use the secure binding, the sample defines a factory that creates custom and with the added discovery secure binding element. These secure endpoints can be used in discovery announcement listeners and discoverable services. ## Sample Details - The sample includes a library and 4 console applications: + The sample includes a library and 4 console applications: - **DiscoverySecurityChannels**: A library that exposes the secure binding. The library computes and verifies the compact signature for outgoing/incoming messages. diff --git a/docs/framework/wcf/samples/durable-instance-context.md b/docs/framework/wcf/samples/durable-instance-context.md index e6ecf24f35561..5fdb00d61ce37 100644 --- a/docs/framework/wcf/samples/durable-instance-context.md +++ b/docs/framework/wcf/samples/durable-instance-context.md @@ -395,6 +395,7 @@ Client applications must add the DurableInstanceContextChannel into the channel type="Microsoft.ServiceModel.Samples.DurableInstanceContextBindingElementSection, DurableInstanceContextExtension, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/> + ``` Now the binding element can be used with a custom binding just like other standard binding elements: diff --git a/docs/framework/wcf/samples/extending-tracing.md b/docs/framework/wcf/samples/extending-tracing.md index d7e0b4904c3e3..50b138e9ebb24 100644 --- a/docs/framework/wcf/samples/extending-tracing.md +++ b/docs/framework/wcf/samples/extending-tracing.md @@ -57,8 +57,8 @@ This sample demonstrates how to extend the Windows Communication Foundation (WCF -.... -.... + +.... ``` ### Correlating Activities diff --git a/docs/framework/wcf/samples/security-validation.md b/docs/framework/wcf/samples/security-validation.md index cae7f703f8257..c78a8ecd43693 100644 --- a/docs/framework/wcf/samples/security-validation.md +++ b/docs/framework/wcf/samples/security-validation.md @@ -49,8 +49,9 @@ public void Validate(ServiceDescription serviceDescription, - -... + + ... + ``` Once the behavior extension is added to the service, it is now possible to add the `endpointValidate` behavior to the list of behaviors in the Web.config file and thus, to the service. diff --git a/docs/framework/wcf/samples/sessions-and-queues.md b/docs/framework/wcf/samples/sessions-and-queues.md index 330524755c857..f85d66e3cf7b6 100644 --- a/docs/framework/wcf/samples/sessions-and-queues.md +++ b/docs/framework/wcf/samples/sessions-and-queues.md @@ -129,7 +129,7 @@ public static void Main() ... - + ``` The client creates a transaction scope. All messages in the session are sent to the queue within the transaction scope, causing it to be treated as an atomic unit where all messages succeed or fail. The transaction is committed by calling . diff --git a/docs/framework/wcf/samples/stand-alone-diagnostics-feed-sample.md b/docs/framework/wcf/samples/stand-alone-diagnostics-feed-sample.md index b279e2304cd57..780d741a8872e 100644 --- a/docs/framework/wcf/samples/stand-alone-diagnostics-feed-sample.md +++ b/docs/framework/wcf/samples/stand-alone-diagnostics-feed-sample.md @@ -40,7 +40,7 @@ WebServiceHost host = new WebServiceHost(typeof(ProcessService), new Uri("http:/ Alternatively, you can use from within an IIS-hosted .svc file to provide equivalent functionality (this technique is not demonstrated in this sample code). ```xml -<%@ ServiceHost Language="C#|VB" Debug="true" Service="ProcessService" %> +<% @ServiceHost Language="C#|VB" Debug="true" Service="ProcessService" %> ``` Because this service receives requests using the standard HTTP GET, you can use any RSS or ATOM-aware client to access the service. For example, you can view the output of this service by navigating to `http://localhost:8000/diagnostics/feed/?format=atom` or `http://localhost:8000/diagnostics/feed/?format=rss` in an RSS-aware browser. diff --git a/docs/framework/wcf/samples/transport-udp.md b/docs/framework/wcf/samples/transport-udp.md index f88251d762a94..e179991fe8992 100644 --- a/docs/framework/wcf/samples/transport-udp.md +++ b/docs/framework/wcf/samples/transport-udp.md @@ -168,7 +168,7 @@ if (soapBinding != null) - + @@ -307,7 +307,7 @@ if (context.Endpoint.Binding is CustomBinding) - @@ -363,7 +363,7 @@ protected override void OnApplyConfiguration(string configurationName) -
diff --git a/docs/framework/wcf/samples/unwrapped-messages.md b/docs/framework/wcf/samples/unwrapped-messages.md index fc686f2133eeb..0c617f440bdd1 100644 --- a/docs/framework/wcf/samples/unwrapped-messages.md +++ b/docs/framework/wcf/samples/unwrapped-messages.md @@ -36,7 +36,6 @@ This sample demonstrates unwrapped messages. By default, the message body is for 15.99 - ``` The unwrapped message does not wrap the `n1` and `n2` parameters in a containing element, they are direct children of the soap body element. diff --git a/docs/framework/wcf/samples/user-name-password-validator.md b/docs/framework/wcf/samples/user-name-password-validator.md index c70ef89398045..9f32c48a4702b 100644 --- a/docs/framework/wcf/samples/user-name-password-validator.md +++ b/docs/framework/wcf/samples/user-name-password-validator.md @@ -236,6 +236,7 @@ serviceHost.Credentials. UserNameAuthentication.CustomUserNamePasswordValidator --> ... + diff --git a/docs/framework/wcf/samples/x-509-certificate-validator.md b/docs/framework/wcf/samples/x-509-certificate-validator.md index 1e9dffd6345b1..2f21d870dff1c 100644 --- a/docs/framework/wcf/samples/x-509-certificate-validator.md +++ b/docs/framework/wcf/samples/x-509-certificate-validator.md @@ -236,6 +236,7 @@ serviceHost.Credentials.ClientCertificate.Authentication.CustomCertificateValida customCertificateValidatorType = "Microsoft.ServiceModel.Samples. CustomX509CertificateValidator, service" /> + ... diff --git a/docs/framework/wpf/advanced/colorconvertedbitmap-markup-extension.md b/docs/framework/wpf/advanced/colorconvertedbitmap-markup-extension.md index fc61edae2cc6f..95b42f550be6b 100644 --- a/docs/framework/wpf/advanced/colorconvertedbitmap-markup-extension.md +++ b/docs/framework/wpf/advanced/colorconvertedbitmap-markup-extension.md @@ -12,7 +12,7 @@ Provides a way to specify a bitmap source that does not have an embedded profile ## XAML Attribute Usage ```xml - + ``` ## XAML Values diff --git a/docs/framework/wpf/advanced/componentresourcekey-markup-extension.md b/docs/framework/wpf/advanced/componentresourcekey-markup-extension.md index b7e25c5723c2f..8f65ebf28b74e 100644 --- a/docs/framework/wpf/advanced/componentresourcekey-markup-extension.md +++ b/docs/framework/wpf/advanced/componentresourcekey-markup-extension.md @@ -15,25 +15,25 @@ Defines and references keys for resources that are loaded from external assembli ## XAML Attribute Usage (setting key, compact) ```xml - + ``` ## XAML Attribute Usage (setting key, verbose) ```xml - + ``` ## XAML Attribute Usage (requesting resource, compact) ```xml - + ``` ## XAML Attribute Usage (requesting resource, verbose) ```xml - + ``` ## XAML Values diff --git a/docs/framework/wpf/advanced/dynamicresource-markup-extension.md b/docs/framework/wpf/advanced/dynamicresource-markup-extension.md index 1b7c3df4b0fcc..f5fa050582e31 100644 --- a/docs/framework/wpf/advanced/dynamicresource-markup-extension.md +++ b/docs/framework/wpf/advanced/dynamicresource-markup-extension.md @@ -15,7 +15,7 @@ Provides a value for any [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharp ## XAML Attribute Usage ```xml - + ``` ## XAML Property Element Usage @@ -23,7 +23,7 @@ Provides a value for any [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharp ```xml - + ``` @@ -57,7 +57,7 @@ Provides a value for any [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharp `DynamicResource` can also be used in a verbose attribute usage that specifies the property as a property=value pair: ```xml - + ``` The verbose usage is often useful for extensions that have more than one settable property, or if some properties are optional. Because `DynamicResource` has only one settable property, which is required, this verbose usage is not typical. diff --git a/docs/framework/wpf/advanced/packaging-fonts-with-applications.md b/docs/framework/wpf/advanced/packaging-fonts-with-applications.md index 084d98d2abd8f..5e030819ec4a7 100644 --- a/docs/framework/wpf/advanced/packaging-fonts-with-applications.md +++ b/docs/framework/wpf/advanced/packaging-fonts-with-applications.md @@ -133,7 +133,7 @@ This topic provides an overview of how to package fonts with your [!INCLUDE[TLA# library ... -... +... diff --git a/docs/framework/wpf/advanced/propertypath-xaml-syntax.md b/docs/framework/wpf/advanced/propertypath-xaml-syntax.md index 8d221d603d031..44612d861722a 100644 --- a/docs/framework/wpf/advanced/propertypath-xaml-syntax.md +++ b/docs/framework/wpf/advanced/propertypath-xaml-syntax.md @@ -35,7 +35,7 @@ A key to understanding property paths in data binding is that you can target the ### Single Property on the Immediate Object as Data Context ```xml - + ``` *propertyName* must resolve to be the name of a property that is in the current for a usage. If your binding updates the source, that property must be read/write and the source object must be mutable. @@ -45,7 +45,7 @@ A key to understanding property paths in data binding is that you can target the ### Single Indexer on the Immediate Object as Data Context ```xml - + ``` `key` must be either the typed index to a dictionary or hash table, or the integer index of an array. Also, the value of the key must be a type that is directly bindable to the property where it is applied. For instance, a hash table that contains string keys and string values can be used this way to bind to Text for a . Or, if the key points to a collection or subindex, you could use this syntax to bind to a target collection property. Otherwise, you need to reference a specific property, through a syntax such as ``. @@ -57,7 +57,7 @@ You can specify the type of the index if necessary. For details on this aspect o ### Multiple Property (Indirect Property Targeting) ```xml - + ``` `propertyName` must resolve to be the name of a property that is the current . The path properties `propertyName` and `propertyName2` can be any properties that exist in a relationship, where `propertyName2` is a property that exists on the type that is the value of `propertyName`. @@ -67,7 +67,7 @@ You can specify the type of the index if necessary. For details on this aspect o ### Single Property, Attached or Otherwise Type-Qualified ```xml - + ``` The parentheses indicate that this property in a should be constructed using a partial qualification. It can use an XML namespace to find the type with an appropriate mapping. The `ownerType` searches types that a [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharptla-xaml-md.md)] processor has access to, through the declarations in each assembly. Most applications have the default XML namespace mapped to the `http://schemas.microsoft.com/winfx/2006/xaml/presentation` namespace, so a prefix is usually only necessary for custom types or types otherwise outside that namespace. `propertyName` must resolve to be the name of a property existing on the `ownerType`. This syntax is generally used for one of the following cases: @@ -85,7 +85,7 @@ For use as storyboard target, the property specified as `propertyName` must be a ### Source Traversal (Binding to Hierarchies of Collections) ```xml - + ``` The / in this syntax is used to navigate within a hierarchical data source object, and multiple steps into the hierarchy with successive / characters are supported. The source traversal accounts for the current record pointer position, which is determined by synchronizing the data with the UI of its view. For details on binding with hierarchical data source objects, and the concept of current record pointer in data binding, see [Use the Master-Detail Pattern with Hierarchical Data](../data/how-to-use-the-master-detail-pattern-with-hierarchical-data.md) or [Data Binding Overview](../../../desktop-wpf/data/data-binding-overview.md). @@ -104,13 +104,13 @@ To reference the current record pointer for a collection view or master detail d ### Multiple Indexers ```xaml - + ``` or ```xaml - + ``` If a given object supports multiple indexers, those indexers can be specified in order, similar to an array referencing syntax. The object in question can be either the current context or the value of a property that contains a multiple index object. @@ -124,7 +124,7 @@ By default, the indexer values are typed by using the characteristics of the und Each of the syntaxes shown above can be interspersed. For instance, the following is an example that creates a property path to the color at a particular x,y of a `ColorGrid` property that contains a pixel grid array of objects: ```xml - + ``` ### Escapes for Property Path Strings @@ -169,7 +169,7 @@ In order to support cloning for animating a that ### Single Property on the Target Object ```xml - + ``` `propertyName` must resolve to be the name of a dependency property that exists on the specified type. @@ -179,7 +179,7 @@ In order to support cloning for animating a that ### Indirect Property Targeting ```xml - + ``` `propertyName` must be a property that is either a value type or a primitive, which exists on the specified type. @@ -195,7 +195,7 @@ For instance, the property of ### Attached Properties ```xml - + ``` The parentheses indicate that this property in a should be constructed using a partial qualification. It can use an XML namespace to find the type. The `ownerType` searches types that a [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharptla-xaml-md.md)] processor has access to, through the declarations in each assembly. Most applications have the default XML namespace mapped to the `http://schemas.microsoft.com/winfx/2006/xaml/presentation` namespace, so a prefix is usually only necessary for custom types or types otherwise outside that namespace. `propertyName` must resolve to be the name of a property existing on the `ownerType`. The property specified as `propertyName` must be a . (All [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)] attached properties are implemented as dependency properties, so this issue is only of concern for custom attached properties.) @@ -205,7 +205,7 @@ The parentheses indicate that this property in a + ``` Most dependency properties or types do not support an indexer. Therefore, the only usage for an indexer in an animation path is at an intermediate position between the property that starts the chain on the named target and the eventual animated property. In the provided syntax, that is `propertyName2`. For instance, an indexer usage might be necessary if the intermediate property is a collection such as , in a property path such as `RenderTransform.Children[1].Angle`. diff --git a/docs/framework/wpf/advanced/relativesource-markupextension.md b/docs/framework/wpf/advanced/relativesource-markupextension.md index 44cd8aea1f88b..4f18eeef90fe4 100644 --- a/docs/framework/wpf/advanced/relativesource-markupextension.md +++ b/docs/framework/wpf/advanced/relativesource-markupextension.md @@ -16,13 +16,13 @@ Specifies properties of a binding sour ## XAML Attribute Usage ```xml - + ``` ## XAML Attribute Usage (nested within Binding extension) ```xml - + ``` ## XAML Object Element Usage @@ -96,6 +96,7 @@ In the following example, the first in + ``` Describing data binding as a concept is not covered here, see [Data Binding Overview](../../../desktop-wpf/data/data-binding-overview.md). diff --git a/docs/framework/wpf/advanced/staticresource-markup-extension.md b/docs/framework/wpf/advanced/staticresource-markup-extension.md index deaf69d16f381..b14e22718f5b7 100644 --- a/docs/framework/wpf/advanced/staticresource-markup-extension.md +++ b/docs/framework/wpf/advanced/staticresource-markup-extension.md @@ -15,7 +15,7 @@ Provides a value for any [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharp ## XAML Attribute Usage ```xml - + ``` ## XAML Object Element Usage @@ -23,7 +23,7 @@ Provides a value for any [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharp ```xml - + ``` @@ -52,7 +52,7 @@ Provides a value for any [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharp `StaticResource` can also be used in a verbose attribute usage that specifies the property as a property=value pair: ```xml - + ``` The verbose usage is often useful for extensions that have more than one settable property, or if some properties are optional. Because `StaticResource` has only one settable property, which is required, this verbose usage is not typical. diff --git a/docs/framework/wpf/advanced/templatebinding-markup-extension.md b/docs/framework/wpf/advanced/templatebinding-markup-extension.md index 34ae9fa053dec..69d4d4f559c66 100644 --- a/docs/framework/wpf/advanced/templatebinding-markup-extension.md +++ b/docs/framework/wpf/advanced/templatebinding-markup-extension.md @@ -15,13 +15,13 @@ Links the value of a property in a control template to be the value of another p ## XAML Attribute Usage ```xml - + ``` ## XAML Attribute Usage (for Setter property in template or style) ```xml - + ``` ## XAML Values @@ -46,7 +46,7 @@ Links the value of a property in a control template to be the value of another p `TemplateBinding` can also be used in a verbose attribute usage that specifies the property as a property=value pair: ```xml - + ``` The verbose usage is often useful for extensions that have more than one settable property, or if some properties are optional. Because `TemplateBinding` has only one settable property, which is required, this verbose usage is not typical. diff --git a/docs/framework/wpf/advanced/themedictionary-markup-extension.md b/docs/framework/wpf/advanced/themedictionary-markup-extension.md index 4630ce69a5341..67ed290d07f06 100644 --- a/docs/framework/wpf/advanced/themedictionary-markup-extension.md +++ b/docs/framework/wpf/advanced/themedictionary-markup-extension.md @@ -15,7 +15,7 @@ Provides a way for custom control authors or applications that integrate third-p ## XAML Attribute Usage ```xml - + ``` ## XAML Object Element Usage @@ -48,7 +48,7 @@ Provides a way for custom control authors or applications that integrate third-p `ThemeDictionary` can also be used in a verbose attribute usage that specifies the property as a property=value pair: ```xml - + ``` The verbose usage is often useful for extensions that have more than one settable property, or if some properties are optional. Because `ThemeDictionary` has only one settable property, which is required, this verbose usage is not typical. diff --git a/docs/framework/wpf/app-development/wpf-windows-overview.md b/docs/framework/wpf/app-development/wpf-windows-overview.md index cbeb4bcb4b550..c0b83ad3ba5ef 100644 --- a/docs/framework/wpf/app-development/wpf-windows-overview.md +++ b/docs/framework/wpf/app-development/wpf-windows-overview.md @@ -109,8 +109,7 @@ Users interact with Windows Presentation Foundation (WPF) standalone application This is shown in the following MSBuild project file. ```xml - + ...