Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. The order of objects in WCF Parameter Inspectors

The order of objects in WCF Parameter Inspectors

Scheduled Pinned Locked Moved WCF and WF
questioncsharpwcfdata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cateyes99
    wrote on last edited by
    #1

    WCF IParameterInspector Interface has two member methods: AfterCall and BeforeCall. Both have parameters passed in as array of objects: object[] outputs and object[] inputs. My questions is what is the order of these two object arrays, are they the same order of the parameter's order defined in the service method signature? anyway, the MSDN document about IParameterInspector doesn't mention this at all.

    D 1 Reply Last reply
    0
    • C cateyes99

      WCF IParameterInspector Interface has two member methods: AfterCall and BeforeCall. Both have parameters passed in as array of objects: object[] outputs and object[] inputs. My questions is what is the order of these two object arrays, are they the same order of the parameter's order defined in the service method signature? anyway, the MSDN document about IParameterInspector doesn't mention this at all.

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      IParameterInspector is an interface. The class which is implementing the interface will decide the order of the inputs/outputs in the arrays. Since, you would be writing the code, it is up to you to decide the order. The interface just demands an array. It does not cares what is the type of it or in what order the elements are inside it.

      50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups