Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            xService       = InstanceFactory.GetInstance <IXService>();
            genericService = InstanceFactory.GetInstance <IGenericService <string> >();

            xService.Method1();
            genericService.GenericMethod("metin");

            Console.ReadKey();
        }
Ejemplo n.º 2
0
 public HomeController(IXService xService, IGenericService <string> genericService)
 {
     _xService       = xService;
     _genericService = genericService;
 }
Ejemplo n.º 3
0
 public XDecoratorAdd800(IXService target)
     : base(target, 800)
 {
 }
Ejemplo n.º 4
0
 public XDecoratorAdd90(IXService target)
     : base(target, 90)
 {
 }
Ejemplo n.º 5
0
 public XDecorator(IXService target, int add)
 {
     _target = target;
     _add    = add;
 }
 public XController(IXService xService, IRepository <XItem> xRepository)
 {
     _xService    = xService;
     _xRepository = xRepository;
 }
Ejemplo n.º 7
0
 public XServiceContractRequestBuilder WithBody(IXService myServiceContract)
 {
     this._myServiceContract = myServiceContract;
     return(this);
 }