1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.Windsor
.Tests
.Components
19 public interface ICamera
22 string Name { get; set; }
23 string IPNumber { get; set; }
26 public interface ICameraServiceBase
28 ICamera
Add(String name
, string ipNumber
);
31 public interface ICameraService
: ICameraServiceBase
33 void Record(ICamera cam
);
36 public class Camera
: ICamera
39 private string myName
;
40 private string myIPNumber
;
50 get { return myName; }
51 set { myName = value; }
54 public String IPNumber
56 get { return myIPNumber; }
57 set { myIPNumber = value; }
61 public class CameraService
: MarshalByRefObject
, ICameraService
63 public ICamera
Add(String name
, String ipNumber
)
68 public void Record(ICamera cam
)
70 Console
.WriteLine("Recording...");