Esempio n. 1
0
 public static ComponentRegistration <T> AsWcfService <T>(this ComponentRegistration <T> registration,
                                                          params IWcfServiceModel[] serviceModels) where T : class
 {
     return(registration.ActAs(serviceModels));
 }
Esempio n. 2
0
 public static ComponentRegistration <T> AsWcfService <T>(this ComponentRegistration <T> registration) where T : class
 {
     return(registration.ActAs(new DefaultServiceModel()));
 }
Esempio n. 3
0
 public static ComponentRegistration <T> AsWcfClient <T>(this ComponentRegistration <T> registration,
                                                         params IWcfClientModel[] clientModels) where T : class
 {
     return(registration.ActAs(clientModels));
 }
Esempio n. 4
0
 public static ComponentRegistration <T> AsWcfClient <T>(this ComponentRegistration <T> registration, IWcfEndpoint endpoint) where T : class
 {
     return(registration.ActAs(new DefaultClientModel(endpoint)));
 }
#pragma warning disable 612,618
        public static ComponentRegistration <T> AsWcfClient <T>(this ComponentRegistration <T> registration)
        {
            return(registration.ActAs(new DefaultClientModel()));
        }