ServiceActivationOptions.ApplyCultureToCurrentContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Applies the values of ClientCulture and ClientUICulture to the current ExecutionContext, if they have been set on this struct.
public:
Microsoft::ServiceHub::Framework::ServiceActivationOptions::CultureApplication ApplyCultureToCurrentContext();
public Microsoft.ServiceHub.Framework.ServiceActivationOptions.CultureApplication ApplyCultureToCurrentContext ();
member this.ApplyCultureToCurrentContext : unit -> Microsoft.ServiceHub.Framework.ServiceActivationOptions.CultureApplication
Public Function ApplyCultureToCurrentContext () As ServiceActivationOptions.CultureApplication
Returns
A value to dispose of to revert the CultureInfo properties to their prior values.
Remarks
By surrounding construction of a ServiceRpcDescriptor.RpcConnection with the client's applied culture, that connection is expected to pick it up and dispatch incoming RPC requests using that culture.