예제 #1
0
 /// <summary>
 /// Selfs this instance.
 /// </summary>
 public BasedOnDescriptor Self()
 {
     _serviceStrategy = new SelfServiceStrategy();
     return(_baseOnDescritor);
 }
예제 #2
0
 public Service(IServiceStrategy strategy)
 {
     this.strategy    = strategy;
     base.ServiceName = strategy.ServiceName;
 }
예제 #3
0
 /// <summary>
 /// Firsts the interface.
 /// </summary>
 public BasedOnDescriptor FirstInterface()
 {
     _serviceStrategy = new FirstServiceStrategy();
     return(_baseOnDescritor);
 }
예제 #4
0
 /// <summary>
 /// Bases this instance.
 /// </summary>
 public BasedOnDescriptor Base()
 {
     _serviceStrategy = new BaseServiceStrategy();
     return(_baseOnDescritor);
 }
예제 #5
0
 /// <summary>
 /// Selfs this instance.
 /// </summary>
 public BasedOnDescriptor Self()
 {
     _serviceStrategy = new SelfServiceStrategy();
     return _baseOnDescritor;
 }
예제 #6
0
 /// <summary>
 /// Firsts the interface.
 /// </summary>
 public BasedOnDescriptor FirstInterface()
 {
     _serviceStrategy = new FirstServiceStrategy();
     return _baseOnDescritor;
 }
예제 #7
0
 /// <summary>
 /// Bases this instance.
 /// </summary>
 public BasedOnDescriptor Base()
 {
     _serviceStrategy = new BaseServiceStrategy();
     return _baseOnDescritor;
 }