public static void Init(CloudStorageAccount account) { var blobClient = account.CreateCloudBlobClient(); var container = blobClient.GetContainerReference("topics"); container.CreateIfNotExists(); Instance = new TopicStorage(container); }
public Topic( string id, IActorSystem system, ITimerService timers, IReminderService reminders, ITopicStorage storage) : base(id, system) { this.timers = timers; this.reminders = reminders; this.storage = storage; }
public Topic() { timers = new TimerService(this); reminders = new ReminderService(this); storage = ServiceLocator.TopicStorage; }
public Topic(string id, IActorRuntime runtime, ITopicStorage storage) : base(id, runtime) { this.storage = storage; }
public Topic() { storage = ServiceLocator.TopicStorage; }
public Topic(ITopicStorage storage, string id = null, IActorRuntime runtime = null) : base(id, runtime) { this.storage = storage; }
public async Task Init(Options options) { storage = await TopicStorage.Init(options.Account); }
public TopicLogic(ITopicStorage topicStorage) { this.topicStorage = topicStorage; }
public override Task Run(IDictionary <string, string> properties) { TopicStorage = Demo.TopicStorage.Init(properties["account"]); return(TaskDone.Done); }