public static DataAccessResponseType ProcessAccountProvisioning(string accountId)
        {
            //var response = ProvisioningManager.ProvisionAccount(AccountManager.GetAccountByID(accountID, true));
            var response = ProvisioningManager.ProvisionAccount(AccountManager.GetAccount(accountId, false, AccountManager.AccountIdentificationType.AccountID));

            return(response);
        }
Exemplo n.º 2
0
        public override void PrepareToPrime(DbgEntityList aEntities)
        {
            List <string> fileNames = new List <string>();

            foreach (DbgEntity entity in aEntities)
            {
                fileNames.Add(entity.FullName);
            }

            ProvisioningManager.PrepareToCreateSources(fileNames);
        }
Exemplo n.º 3
0
        public override void Add(DbgEntity aEntity)
        {
            SymSourceProvider provider = null;

            //
            if (aEntity.FSEntity.IsFile)
            {
                if (aEntity.Exists && aEntity.FSEntity.IsValid)
                {
                    provider = ProvisioningManager.GetProvider(aEntity.FSEntity.FullName);
                }
                //
                if (provider != null)
                {
                    using (SymSourceCollection sources = provider.CreateSources(aEntity.FullName))
                    {
                        // Make sure the time to read attribute is setup in alignment with
                        // whether the entity was explicitly added by the user or found implicitly
                        // by scanning.
                        if (aEntity.WasAddedExplicitly == false)
                        {
                            foreach (SymSource source in sources)
                            {
                                // This means, don't read this source until it is actually
                                // referenced by the client. I.e. until the client activates
                                // a code segment that refers to this
                                source.TimeToRead = SymSource.TTimeToRead.EReadWhenNeeded;
                            }
                        }

                        // Ownership is transferred
                        iSources.AddRange(sources);
                        sources.Clear();
                    }
                }
                else
                {
                    throw new NotSupportedException("Specified file type is not supported");
                }
            }
            else
            {
                throw new ArgumentException("SymbianSymbolLib does not support directory entities");
            }
        }
Exemplo n.º 4
0
 public SymbolPrimer(SymbolPlugin aPlugin)
     : base(aPlugin)
 {
     // If we've been created then presumably this is the reason...
     ProvisioningManager.PrepareToCreateSources();
 }