/// <summary> /// Selfs this instance. /// </summary> public BasedOnDescriptor Self() { _serviceStrategy = new SelfServiceStrategy(); return(_baseOnDescritor); }
public Service(IServiceStrategy strategy) { this.strategy = strategy; base.ServiceName = strategy.ServiceName; }
/// <summary> /// Firsts the interface. /// </summary> public BasedOnDescriptor FirstInterface() { _serviceStrategy = new FirstServiceStrategy(); return(_baseOnDescritor); }
/// <summary> /// Bases this instance. /// </summary> public BasedOnDescriptor Base() { _serviceStrategy = new BaseServiceStrategy(); return(_baseOnDescritor); }
/// <summary> /// Selfs this instance. /// </summary> public BasedOnDescriptor Self() { _serviceStrategy = new SelfServiceStrategy(); return _baseOnDescritor; }
/// <summary> /// Firsts the interface. /// </summary> public BasedOnDescriptor FirstInterface() { _serviceStrategy = new FirstServiceStrategy(); return _baseOnDescritor; }
/// <summary> /// Bases this instance. /// </summary> public BasedOnDescriptor Base() { _serviceStrategy = new BaseServiceStrategy(); return _baseOnDescritor; }