Exemplo n.º 1
0
        public static IMvcBuilder AddSimpleServiceController <T>(this IMvcBuilder builder) // PROTO3
            where T : class
        {
            var servicedef = SF.GetServiceDefinition <T>();

            var info = Compile <T>(servicedef);

            return(builder.AddApplicationPart(info.Type.Assembly));
        }
Exemplo n.º 2
0
 public EndpointInstance(Type servicetype, Type[] servicestypes)
 {
     this.ServiceDef    = SF.GetServiceDefinition(servicetype);
     this.ServicesTypes = servicestypes;
 }
Exemplo n.º 3
0
 public EndpointInstance(object service)
 {
     this.Target     = service;
     this.ServiceDef = SF.GetServiceDefinition(service.GetType());
 }