Ejemplo n.º 1
0
            public void Initialize()
            {
                appHost.Resolve <ICacheClient>().FlushAll();
                ((MemorySubscriptionStore)appHost.Resolve <ISubscriptionStore>()).Clear();

                client.Put(new ResetConsumedEvents());

                appHost.LoginUser(client, "asubscriber", WebhookFeature.DefaultSubscriberRoles);

                CreateSubscription(client, BaseUrl);
            }
            public void Initialize()
            {
                appHost.Resolve <ICacheClient>().FlushAll();
                ((MemorySubscriptionStore)appHost.Resolve <ISubscriptionStore>()).Clear();

                client.Put(new ResetConsumedEvents());
                var subscriberUrl = BaseUrl.WithoutTrailingSlash() + new ConsumeEvent().ToPostUrl();

                appHost.LoginUser(client, "asubscriber", WebhookFeature.DefaultSubscriberRoles);
                client.Post(new CreateSubscription
                {
                    Name   = "test",
                    Events = new List <string> {
                        "aneventname"
                    },
                    Config = new SubscriptionConfig
                    {
                        Url = subscriberUrl
                    }
                });
            }
 public void Initialize()
 {
     ((MemorySubscriptionStore)appHost.Resolve <ISubscriptionStore>()).Clear();
     userId = appHost.LoginUser(client, "asubscriber", WebhookFeature.DefaultSubscriberRoles);
 }
 public void Initialize()
 {
     ((MemorySubscriptionStore)appHost.Resolve <ISubscriptionStore>()).Clear();
     appHost.LoginUser(client, "aservice", WebhookFeature.DefaultRelayRoles);
 }