473,796 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sychronization domain: what is it?

Joe
Hello All:

I have been researching the WaitOne method and don't understand what the
second param is for. It is a boolean value that determines "whether to exit
the synchronization domain before the wait." What does this mean?

How does the WaitOne (or, for that matter, WaitAny or WaitAll) differ from a
synchronous call? To me they look effectively the same. Unless the
difference has to do with this "synchronizatio n domain" thing.

Any help will be appreciated.

TIA,
--
Joe
Jul 20 '06 #1
1 6378
Hi Joe,

Synchronization domain is referring to the synchronization context of a
ContextBoundObj ect. In the .NET Framework you can implement something known
as "Aspect-Oriented programming". In Aspect-Oriented programming an object
is created in it's own context based on aspects of the object such as
"requires synchronization " or "car is blue". Aspects are applied through a
ContextAttribut e Attribute and custom ContextProperty objects, which are
given a chance, at runtime, to participate in the creation of a context for
an instance of a class on which the ContextAttribut e adorns. The .NET
Framework ships with an aspect that handles automatic synchronization
between all instance methods of the object to which it is applied, which can
be any object deriving from ContextBoundObj ect.

System.Runtime. Remoting.Contex ts.Synchronizat ionAttribute applies an aspect
to a ContextBoundObj ect that has the semantics of, "I require a
synchronization domain for my context which ensures that all public instance
methods are executed in a synchronous manner". Adorning your
ContextBoundObj ect with this attribute ensures synchronicity between public
instance methods without requiring explicit synchronization code such as
locking or the use of wait handles.

ContextBoundObj ect uses the plumbing of the Remoting framework to handle
messages, and therefore works across application domain boundaries using
standard remoting channels and registration mechanisms just like
MarshalByRefObj ects. As a matter of fact, ContextBoundObj ect derives from
MarshalByRefObj ect.

Having a context for an object also provides useful features for Remoting
not possible by any other means within the .NET Framework such as client
envoy sinks that are automatically distributed to remote clients and server
object sinks that are executed per instance as opposed to channel sinks
which apply to all remoted objects.

Aspect-Oriented programming with ContextBoundObj ects:
http://msdn.microsoft.com/msdnmag/is...P/default.aspx

Injecting custom sinks:
http://msdn.microsoft.com/msdnmag/is...T/default.aspx

IMO the functionality provided by this little-known piece of the .NET
Framework pie could be very useful. The cost of using such a robust
mechanism may be performance but the benefits such as ease of use as opposed
to writing a custom solution may very well outweigh the negatives.

- Dave Sexton

"Joe" <Jo*@discussion s.microsoft.com wrote in message
news:6E******** *************** ***********@mic rosoft.com...
Hello All:

I have been researching the WaitOne method and don't understand what the
second param is for. It is a boolean value that determines "whether to
exit
the synchronization domain before the wait." What does this mean?

How does the WaitOne (or, for that matter, WaitAny or WaitAll) differ from
a
synchronous call? To me they look effectively the same. Unless the
difference has to do with this "synchronizatio n domain" thing.

Any help will be appreciated.

TIA,
--
Joe

Jul 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
520
by: RobinB | last post by:
We gave created a web application that uses AD for authorization and authentication. The application can be used by domain users as well as the general public. What we currently have is 2 domains - Domain A is the corporate domain and Domain B is the application domain. Domain B trusts Domain A. What we want to do for general public users is to create users in Domain B (the application) and add them to a group in Domain B. For the...
3
11128
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code behind and don't use a domain then I can not change or remove that cookie's value on the client. If I subsequently create the cookie again in the codebehind then I actually end up with TWO cookies with the same name in the response. The cookie...
3
1606
by: Nick | last post by:
hi, all I just started to create my own website and I registered a new domain from yahoo, and then I want to register a webhost plan. And how to use this domain I registered? What I undertood about transfer domain is I can transfer the domain to the webhost vendor, and they can config it on their server to point this domain to my web pages, is this right? Is the transfer domain free? Thanks.
3
2163
by: musosdev | last post by:
Hi guys I've got the following error on a project which is running locally on a vs2005 machine (built in webserver), trying to connect to my win2k3 server active directory. the error is... System.SystemException: The trust relationship between this workstation and the primary domain failed.
17
4184
by: Bruno | last post by:
I have a feature that is hosted on a different domain from the primary one in a frame, and need to retain values in a cookie. example: A web page at one.com contains a frame which has a page hosted at two.com If I view the frameset from one.com in Firefox, all works well with the content from two.com. But if trying to view this using IE (with standard security settings), the cookie set by two.com is not accessible.
9
5423
by: Sam | last post by:
Validate domain name context Hello , Today I want to make sure from a given text is a domain style or not. for example : the domain can be example.com or example.com.us or example.us so , what is the pattren to check the given string is a domain style or not?
6
2983
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, We have two sites hosted on different servers and we have many pages on domain A which has many links(asp programs) to domain B. My question is if domain B server is in trouble, what is the best way to have all domain pages redirect to domain A? Right now I just have redirect code in each program on domain B to redirect to a maintenance page on domain A. Can I just write on program to solve this issue? Thanks.
1
1187
by: malikjaved | last post by:
Hi everyone, i have created a merge replication in sql 2005 b/w two servers, and the subscribtion type is pull, and sychronization start after every 3 hours, but some time i need to make sychronization before 3 hours, is there any script or procedure that i can write and use to start sychronizaiton on demand.. Thanks and looking forward.
0
2877
by: sdgvfwe | last post by:
samba domain controller web hosting gratis eigene domain com domain ueberpruefen web site de + + + http://jhku.net/DOMAINS-KOSTENLOS/ http://jhku.net/DOMAINS-KOSTENLOS/ http://jhku.net/DOMAINS-KOSTENLOS/ http://jhku.net/DOMAINS-KOSTENLOS/
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10465
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4127
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.