Ejemplo n.º 1
0
        public static void Init(IServiceProvider app)
        {
            IAPP = app;
            object iloger = app.GetService(typeof(ILogger));

            if (iloger != null)
            {
                ILog = iloger as ILogger;
            }
            object iSer = app.GetService(typeof(ISerializeable));

            if (iSer != null)
            {
                ISer = iSer as ISerializeable;
            }
            object ihttp = app.GetService(typeof(IHttpExpress));

            if (ihttp != null)
            {
                IHttp = ihttp as IHttpExpress;
            }
        }
Ejemplo n.º 2
0
 public EurekaService(IHttpExpress http)
 {
     this.IHttp = http;
 }