public static void Init(CloudStorageAccount account)
        {
            var blobClient = account.CreateCloudBlobClient();

            var container = blobClient.GetContainerReference("topics");

            container.CreateIfNotExists();

            Instance = new TopicStorage(container);
        }
Exemple #2
0
 public Topic(
     string id,
     IActorSystem system,
     ITimerService timers,
     IReminderService reminders,
     ITopicStorage storage)
     : base(id, system)
 {
     this.timers    = timers;
     this.reminders = reminders;
     this.storage   = storage;
 }
Exemple #3
0
 public Topic(
     string id, 
     IActorSystem system, 
     ITimerService timers, 
     IReminderService reminders, 
     ITopicStorage storage)
     : base(id, system)
 {
     this.timers = timers;
     this.reminders = reminders;
     this.storage = storage;
 }
Exemple #4
0
 public Topic()
 {
     timers    = new TimerService(this);
     reminders = new ReminderService(this);
     storage   = ServiceLocator.TopicStorage;
 }
Exemple #5
0
 public Topic()
 {
     timers = new TimerService(this);
     reminders = new ReminderService(this);
     storage = ServiceLocator.TopicStorage;
 }
Exemple #6
0
 public Topic(string id, IActorRuntime runtime, ITopicStorage storage) : base(id, runtime)
 {
     this.storage = storage;
 }
Exemple #7
0
 public Topic()
 {
     storage = ServiceLocator.TopicStorage;
 }
Exemple #8
0
 public Topic(ITopicStorage storage, string id = null, IActorRuntime runtime = null)
     : base(id, runtime)
 {
     this.storage = storage;
 }
Exemple #9
0
 public Topic(string id, IActorRuntime runtime, ITopicStorage storage) : base(id, runtime)
 {
     this.storage = storage;
 }
Exemple #10
0
 public Topic()
 {
     storage = ServiceLocator.TopicStorage;
 }
Exemple #11
0
 public async Task Init(Options options)
 {
     storage = await TopicStorage.Init(options.Account);
 }
Exemple #12
0
 public TopicLogic(ITopicStorage topicStorage)
 {
     this.topicStorage = topicStorage;
 }
Exemple #13
0
 public override Task Run(IDictionary <string, string> properties)
 {
     TopicStorage = Demo.TopicStorage.Init(properties["account"]);
     return(TaskDone.Done);
 }