Sign in
Jason He's WebLog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
Pages
Archive
Archives
April 2008
(1)
January 2008
(1)
November 2007
(1)
October 2007
(7)
September 2007
(4)
June 2007
(1)
March 2007
(1)
January 2007
(12)
March 2004
(2)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Jason He's WebLog
CLR AddIn Model in Paint.Net – 11 (AddIn side data type adapter)
Posted
over 6 years ago
by
ZifengH
2
Comments
From the last blog post, we understand that we need new contract at the isolation boundary to route AddIn calls to and from the Host. We defined 3 new contracts IAddInRenderArgsContract IAddInSurfaceContract and IAddInColorBgraContract. As we discussed...
Jason He's WebLog
CLR AddIn Model in Paint.Net – 10 (Data type contract)
Posted
over 6 years ago
by
ZifengH
0
Comments
If the reader is familiar with Paint.Net, you will notice that we cannot really write a functional AddIn without referencing Paint.Net’s library. There are data types that are only available in Paint.Net. Many CLR AddIn adopters will soon come up with...
Jason He's WebLog
CLR AddIn Model in Paint.Net – 9 (LifetimeToken and LifetimeTokenHandle)
Posted
over 6 years ago
by
ZifengH
1
Comments
AddIn can be passed to multiple Hosts, or it can have multiple references for the same Host. How to manage the lifetime of an AddIn becomes a big challenge. In the old COM world, we would do reference counting; allowing each AddIn increment the reference...
Jason He's WebLog
CLR AddIn team blog
Posted
over 6 years ago
by
ZifengH
0
Comments
Our CLR AddIn team has a blog site available on http://blogs.msdn.com/clraddins/ That will be a great place to ask general questions and to give feedback. BTW, Jack and Jesse wrote an MSDN article. You can find it here. http://msdn.microsoft...
Jason He's WebLog
CLR AddIn Model in Paint.Net – 8 (AddInController)
Posted
over 6 years ago
by
ZifengH
1
Comments
Managing the lifecycle of an AddIn is not trivial. AddIn may be in-process or out-of process, AddIns may share one AppDomain, AddIn my stay in its own AppDomain, AdddIn may stay in Host’s AppDomain, one AddIn may have multiple host views, AddIn may have...
Jason He's WebLog
CLR AddIn Model in Paint.Net – 7 (AddIn Activation)
Posted
over 6 years ago
by
ZifengH
1
Comments
In the AddIn discovery blog, we already knew that we could get a collection of AddInToken from discovery API. AddInToken stores the full pipeline information and can be used to activate an AddIn. Before host start to activate an AddIn, it has many decisions...
Jason He's WebLog
CLR AddIn Model in Paint.Net – 6 (AddInBase, AddIn and Deployment)
Posted
over 6 years ago
by
ZifengH
2
Comments
AddInView is an abstract class and AddIn should inherit from it. Here is the code for AddInView and AddIn. namespace PaintDotNetAddInViews { [ AddInBase ] public abstract class PDNAddInView { public abstract void Render(); ...
Jason He's WebLog
CLR AddIn Model in Paint.Net – 5 (IContract, ContractBase and AddInAdapter)
Posted
over 6 years ago
by
ZifengH
1
Comments
Once we load an AddIn in an AppDomain, we need to think about its lifetime management. There are questions like how to keep it alive in a remoting environment? What happens when we disconnect an AddIn with the host? When should we unload the AddIn appdomain...
Jason He's WebLog
CLR AddIn Model in Paint.Net – 4 (Contract and HostAdapter)
Posted
over 6 years ago
by
ZifengH
1
Comments
We did not talk about anything about versioning. Versioning is a big challenge for Host and AddIn developers. Whenever Host or AddIn has an upgrade, versioning and compatibility becomes a big problem. Our AddIn model is trying to solve the versioning...
Jason He's WebLog
CLR AddIn Model in Paint.Net – 3 (Host Side View)
Posted
over 6 years ago
by
ZifengH
1
Comments
Host Side View (HSV) is exactly what the name indicates. It is the view of an AddIn from Host’s eyes. It is an abstract class usually defined by the Host. AddIn developers will implement all the functionalities and return result to the Host via HSV. ...
Jason He's WebLog
CLR AddIn Model in Paint.Net – 2 (AddIn discovery)
Posted
over 6 years ago
by
ZifengH
3
Comments
Paint.Net can host multiple AddIns. We can let the user pick which AddIn to use. To discover all the AddIns on the machine, we provided a few really simple APIs to do that. First, host needs to know where to discover all the AddIns and Pipelines (pipelines...
Jason He's WebLog
CLR AddIn Model in Paint.Net – 1 (Introduction)
Posted
over 6 years ago
by
ZifengH
1
Comments
I am recently working on the AddIn model for the .Net Framework. There are many Hosts, AddIns, and Pipelines written internally to test our current model. One day, this idea popped out. How about adding AddIn model to a real-life project and see how good...
Page 1 of 1 (12 items)