I have added a Table of Contents page for the Introduction to CAB/SCSF articles in an attempt to make it a little easier to navigate around them. This is available from the recent posts menu.
Introduction Part 11 of this series of articles gave a general introduction to events in the CAB. This article investigates what we can do with these events in a little more detail. Parameters of the Fire Method As shown in part 11, the Fire method has four parameters: workItem.EventTopics["MyEvent"].Fire(this, EventArgs.Empty, null, PublicationScope.Global); The first two … Continue reading Events in the CAB (Introduction to CAB/SCSF Part 12)
Introduction Part 10 of this series of articles described how the CAB implements commands. The CAB also provides a new way of raising and sinking events. This article will describe how this works. Overview of events in .NET Events in .NET are a publish-subscribe mechanism. We declare an event in a publisher class, instantiate the … Continue reading Introduction to Events in the CAB (Introduction to CAB/SCSF Part 11)
Introduction Part 9 of this series of articles discussed the Command design pattern. Commands in the CAB are a neat way of implementing this pattern. This article will examine them in some detail. Commands and Events As already discussed in part 9, commands in the CAB are closely related to events. In fact one of … Continue reading Commands in the CAB (Introduction to CAB/SCSF Part 10)
Introduction Part 8 of this series of articles concluded our discussion of services in the CAB. This article and part 10 of this series will talk about commands in the CAB. Commands are a neat way of implementing the Command design pattern. This article will briefly recap what the Command pattern is and why it … Continue reading The Command Design Pattern (Introduction To The CAB/SCSF Part 9)
Introduction Part 7 of this series of articles gave us a general introduction to services in the CAB. This article will go into more detail on the various ways we can create and use such services. Ways of Creating a Service We start with the various ways services can be created. This can be done … Continue reading Creating and Using Services in the CAB (Introduction to the CAB/SCSF Part 8)
Introduction Part 6 of this series of articles concluded our discussion of dependency injection in the CAB. This article and part 8 of the series will discuss services in the CAB in some more detail. This article discusses services in general terms, whilst part 8 will show in detail the various ways of creating and … Continue reading Introduction to Services in the CAB (Introduction to the CAB/SCSF Part 7)
Introduction Part 3 of this series of articles described the different types of dependency injection that we can use in general. These are setter injection, constructor injection and interface injection. Part 5 showed how dependency injection works in the CAB. The examples given there exclusively used setter injection. In general we don’t use interface injection … Continue reading Constructor Injection in the CAB (Introduction to the CAB/SCSF Part 6)