コード例 #1
0
 public void ApplyDispatchBehavior(OperationDescription operationDescription, DispatchOperation dispatchOperation)
 {
     var previousInvoker = dispatchOperation.Invoker;
     var methodName = operationDescription.Name;
     var newInvoker = new CachingOperationInvoker(methodName, previousInvoker, ExpirationTime, RegionName);
     dispatchOperation.Invoker = newInvoker;
 }
コード例 #2
0
        public void ApplyDispatchBehavior(OperationDescription operationDescription, DispatchOperation dispatchOperation)
        {
            var previousInvoker = dispatchOperation.Invoker;
            var methodName      = operationDescription.Name;
            var newInvoker      = new CachingOperationInvoker(methodName, previousInvoker, ExpirationTime, RegionName);

            dispatchOperation.Invoker = newInvoker;
        }