Ejemplo n.º 1
0
 private PartitionOperations(IReliableStateManager stateManager,
                             IReliableDictionary <Email, UserInfo> partitionUsers,
                             ReliableList <ItemId> partitionUnexpiredItems)
 {
     m_stateMgr       = stateManager;
     m_users          = partitionUsers;
     m_unexpiredItems = partitionUnexpiredItems;
 }
Ejemplo n.º 2
0
        internal static async Task <PartitionOperations> CreateAsync(IReliableStateManager stateManager)
        {
            var partitionUsers = await stateManager.GetOrAddAsync <IReliableDictionary <Email, UserInfo> >("PartitionUsers");

            var partitionUnexpiredItems = await ReliableList <ItemId> .CreateAsync(stateManager, "PartitionUnexpiredItems");

            return(new PartitionOperations(stateManager, partitionUsers, partitionUnexpiredItems));
        }