Beispiel #1
0
 public LogicRegistry()
 {
     For <ILoginLogic>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <ILoginLogic>())
     .Use <LoginLogic>();
     For <IUserInfoLogic>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IUserInfoLogic>())
     .Use <UserInfoLogic>();
     For <IBrowserLogic>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IBrowserLogic>())
     .Use <BrowserLogic>();
     For <ILandingLogic>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <ILandingLogic>())
     .Use <LandingLogic>();
     For <IDownloadLogic>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IDownloadLogic>())
     .Use <DownloadLogic>();
     For <IPreferencesLogic>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IPreferencesLogic>())
     .Use <PreferencesLogic>();
     For <IOriginalTagsLogic>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IOriginalTagsLogic>())
     .Use <OriginalTagsLogic>();
     For <IUpdateCheckLogic>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IUpdateCheckLogic>())
     .Use <UpdateCheckLogic>();
 }
Beispiel #2
0
 public PresentationRegistry()
 {
     For <ILoginPresenter>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <ILoginPresenter>())
     .Use <LoginPresenter>();
     For <IPreferencesPresenter>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IPreferencesPresenter>())
     .Use <PreferencesPresenter>();
     For <IBrowserPresenter>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IBrowserPresenter>())
     .Use <BrowserPresenter>();
 }
Beispiel #3
0
 public RepositoryRegistry()
 {
     For <IRepository <Token> >()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IRepository <Token> >())
     .Use <TokenRepository>();
     For <IRepository <User> >()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IRepository <User> >())
     .Use <UserRepository>();
     For <IRepository <Preferences> >()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IRepository <Preferences> >())
     .Use <PreferencesRepository>();
     For <IRepository <Update> >()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IRepository <Update> >())
     .Use <UpdateRepository>();
 }
Beispiel #4
0
 public OAuthRegistry()
 {
     For <IOAuthManager>()
     .Singleton()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IOAuthManager>())
     .Use <OAuthManager>().
     Ctor <MessageReceivingEndpoint>("serviceEndPoint").Is(FlickrServiceEndPoint);
     For <DesktopConsumer>()
     .Use <DesktopConsumer>()
     .Ctor <ServiceProviderDescription>("serviceDescription")
     .Is(FlickrServiceDescription);
     For <IConsumerTokenManager>()
     .Use <TokenManager>()
     .Ctor <string>("consumerKey")
     .Is(Crypt.Decrypt(Secrets.ConsumerKey, Secrets.SharedSecret))
     .Ctor <string>("consumerSecret")
     .Is(Crypt.Decrypt(Secrets.ConsumerSecret, Secrets.SharedSecret));
     For <IHttpListenerManager>()
     .DecorateAllWith(DynamicProxy.LoggingInterceptorFor <IHttpListenerManager>())
     .Use <HttpListenerManager>();
 }