What is shadow Copy?

2 views
Skip to first unread message

.NetIndia

unread,
Nov 9, 2005, 5:44:58 AM11/9/05
to dotNetIndia
 
What is shadow Copy?


--
Regards,
.NetIndia Group,
"There is no delight in owning anything unshared."
"A book lying idle on a shelf is wasted ammunition. Like money, books must be kept in constant circulation. Lend and borrow to the maximum -- of both books and money! But especially books, for books represent infinitely more than money. A book is not only a friend, it makes friends for you. When you have possessed a book with mind and spirit, you are enriched. But when you pass it on you are enriched threefold."

Blog:http://dotnetindia.blogspot.com/
Technical Discussion: Techdot...@googlegroups.com
http://groups.google.com/group/TechdotNetIndia
Job Section         : TechdotNet...@googlegroups.com
http://groups.google.com/group/TechdotNetIndia-Jobs

Juneja Tarun

unread,
Nov 9, 2005, 7:18:27 AM11/9/05
to .NetIndia
Shadow copy is the way by which you can hide the base class Member
in C# you have to use new key word before Function/property/Field name
In vb.net You Have To Use Shadow key word

And Now Base Implementation Is Hidden in this drived class

As far i think this is the way by which you can Change the Visibility
Scope as below example

But It follow Different polimor..ism call rule

class _base
{
//code
protected void f()
{
//code
}
}

class drived : _base
{
public void f()
{
base.f(); // call to base implementation and now it is public
}

}

BabuLives

unread,
Nov 9, 2005, 7:31:30 AM11/9/05
to .NetIndia
I dont think there is a keyword called "shadow" in c# ??


Regards,
Satheesh

sunil

unread,
Nov 9, 2005, 8:13:55 PM11/9/05
to Techdot...@googlegroups.com
      .Net Framework has a feature called Shadow Copy. When shadow copy is enabled on an appdomain, assemblies loaded in that appdomain will be copied to a shadow copy cache directory, and will be used from there.This is great because the original file is not locked. So it can be changed at will. ASP.NET uses this extensively. Actually, shadow copy
is enabled on every appdomain created by ASP.NET.

      Only because of "Shadow copy" concept you need not restart the webserver for any modification in components. Even when you create update with the new version of the DLL the existing or live transaction or half way transaction are not affected rather completed with the olderversion. Once the service is completed the rest are serviced with the new version of DLL / component.

 

regards

sunil


Yahoo! FareChase - Search multiple travel sites in one click.

Reply all
Reply to author
Forward
0 new messages