예제 #1
0
        /// <summary>
        /// Applies the Dispatch (server) side behaviour
        /// </summary>
        /// <param name="description">The Operation Description to add the behaviour to</param>
        /// <param name="dispatch">The Dispatche Operation definition</param>
        public void ApplyDispatchBehavior(OperationDescription description, System.ServiceModel.Dispatcher.DispatchOperation dispatch)
        {
            IOperationBehavior innerBehavior = new ReferencePreservingDataContractSerializerOperationBehavior(description);

            innerBehavior.ApplyDispatchBehavior(description, dispatch);
        }
예제 #2
0
        /// <summary>
        /// Applies the client side behavior for this Attribute
        /// </summary>
        /// <param name="description">The description of the Operation</param>
        /// <param name="proxy">The Client Operation proxy</param>
        public void ApplyClientBehavior(OperationDescription description, System.ServiceModel.Dispatcher.ClientOperation proxy)
        {
            IOperationBehavior innerBehavior = new ReferencePreservingDataContractSerializerOperationBehavior(description);

            innerBehavior.ApplyClientBehavior(description, proxy);
        }