VIS2 SS2013 CVD DVR
Main Page
Packages
Classes
Files
File List
All
Classes
Namespaces
Functions
Enumerations
Properties
VisServiceContainer.cs
1
#region Using Statements
2
using
System;
3
using
System.Collections.Generic;
4
#endregion
5
6
namespace
visLU
7
{
13
public
class
VisServiceContainer
: IServiceProvider
14
{
15
#region Variables
16
Dictionary<Type, object> services =
new
Dictionary<Type, object>();
17
#endregion
18
22
public
void
AddService<T>
(T service)
23
{
24
services.Add(typeof(T), service);
25
}
26
27
31
public
object
GetService
(Type serviceType)
32
{
33
object
service;
34
35
services.TryGetValue(serviceType, out service);
36
37
return
service;
38
}
39
}
40
}
Generated on Wed Jun 12 2013 23:20:55 for VIS2 SS2013 CVD DVR by
1.8.4