Is it possible to change the transfer mode at runtime?

I was building a WCF service using BasicHttpBinding which
typically transmits small messages, but
I can not know in advance what will be
the maximum size of transmitted files.
For these reasons, currently I set
Streamed as transfer mode, using Stream objects as method unique parameter or return data of service operations.
I wondered
if it was possible to make sure that if the size
of the data to be transferred exceeds a certain threshold,
then the Streamed transfer mode is used,
otherwise the Buffered transfer mode
is used.
Thanks a lot for your support!
Vincenzo

Hi Vincenzo83,
>>I wondered
if it was possible to make sure that
if the size of the data to be transferred
exceeds a certain threshold, then
the Streamed transfer mode is used,
otherwise the Buffered transfer
mode is used.
In my mind you can create two endpoints, one will use the buffered transfter mode, the other will use the streamed transfer mode. Then if the files size is large than some value, it will call the first endpoint. Or it will call the second endpoint.
If you want to know the actual message size, please try to use the MessageInspector to help you.
#WCF Extensibility – Message Inspectors:                                        
http://blogs.msdn.com/b/carlosfigueira/archive/2011/04/19/wcf-extensibility-message-inspectors.aspx .
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Is it possible to change the display mode of the dB Number on level meter?

    the default dB number just shows up the maxi happened peak level and keeps
    holding the level number until the next higher level. any one know if there is any other mode to have?

    It's a headroom meter, and can be reset by clicking it (there is a key command for this also).
    It's purpose is to let you know the maximum level your channel has reached, and therefore how much headroom you have (or not). I'm not sure what other "modes" you'd want - what did you have in mind?

  • Is it possible to change the ALV report layout settings in spool request

    Hi All,
    Please let me know is it possible to change the ALV layout settings in background as we can change the layout settings in foreground to get correct format when download to excel.
    Regards,
    Jyothi CH.

    Hello,
    Add a parameter for layout on selection-screen (p_varmm LIKE disvariant-variant).
    As you are in backgroud mode, ALV will be printed with this layout (assuming you call correctly the MF ALV_LIST or REUSE_ALV_GRID)
    Regards,
    Christophe

  • OpenHub - unable to change the extraction mode in DTP

    Hi there,
    I have an Open Hub that is loaded from two InfoCubes and I need to change the DTPs from both of them.
    The problem is that Iu2019m unable to change the extraction mode of both DTPs from Delta to Full in spite of having deleted the Open Hub table. Even I have deleted the requests from the InfoCubes, but itu2019s not working.
    What else I have to do to change the extraction mode? Are there any other tables I should delete first?
    Thanks!!

    hi Rocio.
    Yes i think u can achieve this using an Init DTP load.
    first try to run an Init DTP , Init Without Data Transfer, select it from the Execute tab of processing Mode and then try to run the delta DTP without any load, then successive can be done.
    hope this will help u.
    thanks

  • Is it possible to change the number of weeks to be displayed in the month view in calendar (mavericks)?

    I'd like to know if it's possible to change the number of weeks to be displayed in the month view in calendar? Thanks!

    No.
    There are up to six calendar weeks that might be used to display the 31 possible days in a month.
    So the month view displays six weeks.

  • Does anyone know if it is possible to change the display in week view to show 24 hours per day for those of us that work irregular hours

    Does anyone know if it is possible to change the display in week view to show all 24 hours per day for those of us that work irregular hours.
    Also is it possible to have all of the 'all day' entries showing, not just 3.5 of them.
    The app Week Cal HD was the perfect calendar until Apple removed it so could they please offer the same facilities that it offered.

    Does anyone know if it is possible to change the display in week view to show all 24 hours per day for those of us that work irregular hours.
    Also is it possible to have all of the 'all day' entries showing, not just 3.5 of them.
    The app Week Cal HD was the perfect calendar until Apple removed it so could they please offer the same facilities that it offered.

  • Recently, I discovered I have two iCloud accounts. Is it possible to change the Apple ID from one account to match the second account, without losing the information on each account?

    Recently, I discovered I have two iCloud accounts. Is it possible to change the Apple ID for one of the accounts to match the other account, without losing the information from either account.
    thanks

    Welcome to the Apple Community.
    It's a little tricky to move data from one iCloud account to another but it can be done. But what makes you think you have 2 iCloud accounts.

  • Is it possible to change the video card of a pavilion g7-1075dx?

    So, I have an HP Pavilion g7-1075dx Notebook with Windows 7. I'm an avid gamer and wish to play the newest games. However, there's one problem thats keeping me from doing so. Alot of the newer games require newer video/graphics cards. This particular laptop has an ATI Mobility Radeon HD 4250. The newest games seem to require ATI Radeon HD 4850 and above. This is the only thing thats keeping me from playing games like Starcraft II on the highest settings OR in the case of Star Wars: The Old Republic, it almost keeps me from playing the game, period, due to the graphics being too much for my current card to handle, causing massive lag. I was hoping I could change the video card. Upgrade. However, i've heard that with most laptops or notebooks you can't upgrade anything other than the RAM. I'm hoping anyone on here can help me out and tell me if it is possible to get a new video card for my laptop. We don't have a desktop computer so this laptop is my only hope for a long time to play newer PC games.

    Alright, let me put this in a simpler message: Does anyone know if it is possible to change the video card currently in my laptop, the HP Pavilion g7-1075dx, for a newer and better one. ATI Mobility Radeon HD 4250 to ATI Radeon HD 4850 or higher.

  • Is it possible to change the colour of box in script from black to blue

    Hi,
    Is it possible to change the colour of box in script from black to blue  or some other colour and background colour also...if so how....
    Thanks.

    No..
    It is not possible in scripts..
    In scripts u cannot use colors..
    In smartforms u can do that..
    reward if it helps u..
    sai ramesh

  • How can I get my installed plugins to show up in Logic after ive installed the plugin discs? ive tried changing the bit mode. it STILL doesn't work.???

    I tried installing a program but when i open logic and scan the audio units, it doesnt come up. Even if i change the bit mode, it still doesnt show up. I even tried restarting my machine..Can anyone help me or give me some ideas.
    i just wanna get this plugin to work.

    Have you confirmed that the plug-in installed to one of the locations where Logic might find it? Most plug-ins go to /Library/Audio/Plug-ins/Components. Some (rarely) install to ~/Library/Audio/Plug-ins/Components (where "~" is your user folder). Look in both locations and see if the plug-in is actually there.
    When installing plug-ins, if you are offered options as to what format to install, be sure to include Audio Units. Logic will not see other formats like VST, RTAS, AAX, TDM, etc. If you use other software that recognizes those formats, it's fine to install them too, just be sure you don't deselect Audio Units.
    Finally, if you're sure the plug-in is installed to the right place, open the Audio Units Manager in Logic and check to see if the plug-in passed validation. Go to the main menu and choose Logic Pro > Preferences > Audio Units Manager. Check to see if your plug-in is listed there. If there's not a check mark next to it in the "Logic" column, that means it failed validation. If so, the "Compatibilty" column will tell you why. Keep in mind that if the AU is 32-bit, you have to launch Logic in 32-bit mode to see it here. Likewise, 64-bit plug-ins show up in the manager in 64-bit mode.

  • I have a iMac 21,5" Intel mid 2011 and I need to know if is possible I change the original 500Gb HD for a 512Gb SSD? If yes, where I find a tutorial about this? Thanks a lot and best regards all.

    Hi people,
    I'm typing from Brasil, sorry my English.
    I have a iMac 21,5" Intel mid 2011 and I need to know if is possible I change the original 500Gb HD for a 512Gb SSD?
    I intend to keep the original DVD driver and install the SSD in the same HD place.
    If yes, where I find a tutorial about this?
    And I will like to know if the 512GB Solid-State Drive Kit for Mac Pro is compatible with iMac.
    http://store.apple.com/us/product/MC731ZM/A/512gb-solid-state-drive-kit-for-mac- pro?fnode=5f
    What brand and model of SSD do you recommend?
    Thanks a lot for now and best regards all.
    Carlos Sgrillo
    Porto Alegre, RS, Brasil

    Tukaine
    Sep 23, 2012 10:59 PM
    Since the late 2009 iMacs came out, replacing the hard drive has caused the internal Hard Drive Fan to start running at around 6000RPM.
    This is due to Apple replacing the external Hard Drive temperature sensor with a proprietary firmware and using the drives internal sensor.
    Replacement drives do not contain the firmware to deliver temperature data on the temperature sensor cable.
    When the iMac does not receive a good signal from the hard drive it puts the fan at full speed to protect the drive.
    If you replace your drive, your iMac will initially seem fine, but soon the fan will begin to speed up to full speed. Resetting the SMC (System Management Controller) will have a temporary effect, but again the fan will speed up.
    Fixes people have used in the past included:
    Using smcFanControl and the terminal to set a MAX speed for the fan and writing scripts to start this after every sleep/restart.
    Shorting the temperature sensor cable (Not a possibility on 2011 iMacs) this tricks the iMac into thinking the drives temperature is very low, hence slow fan speed.
    Both these fixes are less then perfect and leave the drive in a dangerous situation with no protection from overheating.
    Another option people try is other Fan Control software. These programs will not work for this particular issue as they often only control the base speed, and if they do control the fans actual speed they rely on the temperature reported by the sensor which is now incorrect.
    HDD Fan Control
    HDD Fan Control works to fix this issue by reading the drives internal temperature using the S.M.A.R.T protocol and set the fans actual speed to a value good to protect the drive.
    It runs at startup and continually to always control the fan correctly, prevent the loud fan noise and protect the drive from overheating
    Instead of HDDFan Control, get the free SSDFan Control
    http://exirion.net/ssdfanctrl/

  • Is it possible to change the order of the fields in the int table?

    Hello
    Is it possible to change the order of the fields in the int table?
    Lets say itab has the following fields :
    F1, F2, F3
    I would like to see it as F2 F3 F1
    Thanks

    >
    Comandante Che Guevara wrote:
    > Lets say itab has the following fields : F1, F2, F3
    >
    > I would like to see it as F2 F3 F1
    What do you mean by "like to see" ? You can WRITE the fields in any order you want. If you want to display the internal table in an ALV you can manipulate the fieldcatalog.
    If you want something else other than display the field, you have to explain your req. in detail.
    BR,
    Suhas

  • Is it possible to change the color of the folders in OS 10.10.2 Yosemite?

    Is it possible to change the color of the folders in OS 10.10.2 Yosemite?

    You can try these after backing up.
    Folders – Color folders
    Folders – Color folders Mavericks
    Folders Factory – Color folders

  • Is it possible to change the color of the regions in GB 11?

    Is it possible to change the color of the regions in GB 11?

    Gourmet Pizza wrote:
    Is it possible to change the color of the regions in GB 11?
    only an imported orange region (to purple):
    http://www.bulletsandbones.com/GB/GBFAQ.html#orangetopurple
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Is it possible to change the color of imported art in pages, say from B&W to a color?  ... or even to make it a gradation of color?

    Is it possible to change the color of imported art in pages, say from B&W to a color?  ... or even to make it a gradation of color?

    Make a Shape > Inspector > Graphic > Tinted Image Fill > Scale to fit > browse to image > click on the color patch to change the color to what you want
    or
    Drag in an image > overlay it with a Shape > select the color for the shape and change its Opacity
    Shapes may have Gradient and Advanced Gradient (multiple colors) fills both linear and radial. Both are in the Graphic Inspector as is Opacity.
    Peter

Maybe you are looking for