예제 #1
0
파일: PubSub.cs 프로젝트: kidozen/kido-win
        static public async Task ClassInit(TestContext context)
#endif
        {
            app = new KZApplication(test.Constants.MarketplaceUrl, test.Constants.AppName);
            await app.Initialize();
            var user = await app.Authenticate(test.Constants.User, test.Constants.Password, test.Constants.Provider);
            pubsub = app.PubSubChannel["test"];
            EnqueueTestComplete();
        }
예제 #2
0
        static public async Task ClassInit(TestContext context)
#endif
        {
            app = new KZApplication(test.Constants.MarketplaceUrl, test.Constants.AppName);
            await app.Initialize();

            var user = await app.Authenticate(test.Constants.User, test.Constants.Password, test.Constants.Provider);

            pubsub = app.PubSubChannel["test"];
            EnqueueTestComplete();
        }
예제 #3
0
 private void AllocServices(JObject config)
 {
     Marketplace    = new Marketplace(this, marketPlaceUri);
     Queue          = new Queue(this, config.ValueUri("queue"));
     PubSubChannel  = new PubSubChannel(this, config.ValueUri("pubsub"), config.ValueUri("ws"));
     Configuration  = new Configuration(this, config.ValueUri("config"));
     SmsSender      = new SmsSender(this, config.ValueUri("sms"));
     MailSender     = new MailSender(this, config.ValueUri("email"));
     Logger         = new Logging(this, config.ValueUri("logging"));
     Storage        = new Storage(this, config.ValueUri("storage"));
     Notification   = new Notification(this, config.ValueUri("notification"));
     Files          = new Files(this, config.ValueUri("files"));
     Authentication = new Authentication(marketPlaceUri.Host, config.Value <JObject>("authConfig"), this.Name);
     Service        = new Service(this, config.ValueUri("service"));
     DataSource     = new DataSource(this, config.ValueUri("datasource"));
 }