Пример #1
0
        public void Execute(ApplicationTypes type, Frameworks framework, string targetExe, string arguments, string rootDirectory, string workingDirectory, string url)
        {
            var info = new DirectoryInfo(rootDirectory);

            if (!info.Exists)
            {
                throw new DirectoryNotFoundException("Directory not found");
            }

            var msg = new ExecuteMessage()
            {
                Command          = Commands.Execute,
                ApplicationType  = type,
                Framework        = framework,
                Executable       = targetExe,
                Arguments        = arguments,
                WorkingDirectory = workingDirectory,
                Url       = url,
                RootPath  = rootDirectory,
                IsLocal   = communication.IsLocal,
                Debug     = true,
                LocalPath = rootDirectory
            };

            if (!communication.IsLocal)
            {
                msg.Files.AddFolder(rootDirectory);
            }

            communication.RootPath = rootDirectory;
            communication.Send(msg);
        }
Пример #2
0
        public static Type Get(ApplicationTypes applicationType)
        {
            switch (applicationType)
            {
            case ApplicationTypes.AppSecrets:
                return(typeof(AppSecrets));

            case ApplicationTypes.AppSettings:
                return(typeof(AppSettings));

            case ApplicationTypes.DapperDBContext:
                return(typeof(DapperDBContext));

            case ApplicationTypes.AuditLogDapperStore:
                return(typeof(AuditLogDapperStore));

            case ApplicationTypes.AppUserDapperStore:
                return(typeof(AppUserDapperStore));

            case ApplicationTypes.AppUserProfileDapperStore:
                return(typeof(AppUserProfileDapperStore));

            case ApplicationTypes.ShoutDapperStore:
                return(typeof(ShoutDapperStore));

            default:
                throw new TypeAccessException("Unknown type: " + Enum.GetName(typeof(ApplicationTypes), applicationType));
            }
        }
Пример #3
0
        public Cliente FindClient(string clientId)
        {
            var querysession = _repositryLocalScheme.Session.CallFunction <ClienteDto>(_PACKAGE_NAME + "PR_GET_CLIENTE(?)")

                               .SetParameter(0, clientId);

            List <ClienteDto> clientes = (List <ClienteDto>)querysession.List <ClienteDto>();

            ClienteDto cliente = clientes[0];

            ApplicationTypes appType = new ApplicationTypes();

            if ((int)ApplicationTypes.JavaScript == (cliente.ApplicationTypeId))
            {
                appType = ApplicationTypes.JavaScript;
            }
            else if ((int)ApplicationTypes.NativeConfidential == (cliente.ApplicationTypeId))
            {
                appType = ApplicationTypes.NativeConfidential;
            }

            return(new Cliente
            {
                Id = cliente.IdCliente,
                Secret = cliente.Secret,
                Name = cliente.Name,
                ApplicationType = appType,
                Active = cliente.Active.Equals("S"),
                RefreshTokenLifeTime = cliente.RefreshTokenLifeTime,
                AllowedOrigin = cliente.AllowedOrigin
            });
        }
 public void Initialize(SiteSettings siteSettings, Folder selectedFolder, ApplicationTypes applicationType, FolderSettings folderSettings)
 {
     this.ApplicationType = applicationType;
     this.FolderSettings  = folderSettings;
     this.SelectedFolder  = selectedFolder;
     this.SiteSettings    = siteSettings;
 }
Пример #5
0
        private ISchemaItem mapFrom(FlatSchemaItem flatSchemaItem)
        {
            var schemaItem = new SchemaItem();

            schemaItem.Name            = flatSchemaItem.Name;
            schemaItem.ApplicationType = ApplicationTypes.ByName(flatSchemaItem.ApplicationType);

            // temporarily create parent container hierarchy of the
            //schema item container in order to retrieve parameters from the DB
            FlatContainerId flatContainer = flatSchemaItem;
            IContainer      container     = schemaItem;

            while (_flatContainerRepo.ParentContainerFrom(flatContainer.Id) != null)
            {
                var flatParentContainer = _flatContainerRepo.ParentContainerFrom(flatContainer.Id);
                container.ParentContainer = new Container {
                    Name = flatParentContainer.Name
                };

                container     = container.ParentContainer;
                flatContainer = flatParentContainer;
            }

            // now parameters can be added
            _parameterContainerTask.AddSchemaItemParametersTo(schemaItem);

            return(schemaItem);
        }
Пример #6
0
 /// <inheritdoc />
 public Application(Guid applicationID, string applicationName, ApplicationTypes applicationType, IContainer container)
 {
     _container      = container;
     ApplicationID   = applicationID;
     ApplicationName = applicationName;
     ApplicationType = applicationType;
 }
        // GET: ApplicationTypes
        public Object ApplicationTypes([FromBody] ApplicationTypes AppTypes)
        {
            string    sJSONResponse  = "";
            DataTable dt_AppType     = new DataTable();
            string    ServerDateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);
            int       a                     = 0;
            string    AppType_Query         = "";
            ApplicationRequestsPost AppType = new ApplicationRequestsPost();

            try
            {
                cnn.Open();

                AppType_Query = "insert into ApplicationTypes(AppTypeName,CreatedBy,CreatedOn,IsDeleted,IsActive) values('" + AppTypes.AppTypeName + "','" + AppTypes.CreatedBy + "','" + ServerDateTime + "',0,1)  SELECT @@IDENTITY;";
                SqlCommand tm_cmd = new SqlCommand(AppType_Query, cnn);
                a = Convert.ToInt32(tm_cmd.ExecuteScalar());
                AppType.Status = "Success";
                AppType.AppId  = a;
            }
            catch (Exception ex)
            {
                AppType.Status = "Fail";
                AppType.AppId  = 0;
            }
            finally
            {
                cnn.Close();
            }

            sJSONResponse = JsonConvert.SerializeObject(AppType);

            return(sJSONResponse);
        }
Пример #8
0
        private IEnumerable <TestVariant> Build()
        {
            if (!Servers.Any())
            {
                throw new ArgumentException("No servers were specified.");
            }

            // TFMs.
            if (!Tfms.Any())
            {
                throw new ArgumentException("No TFMs were specified.");
            }

            ResolveDefaultArchitecture();

            if (!ApplicationTypes.Any())
            {
                ApplicationTypes.Add(ApplicationType.Portable);
            }

            if (!HostingModels.Any())
            {
                HostingModels.Add(HostingModel.OutOfProcess);
            }

            var variants = new List <TestVariant>();

            VaryByServer(variants);

            CheckForSkips(variants);

            return(variants);
        }
        public bool AddDocumentTemplate(string templatePath, ApplicationTypes applicationType, string title, string description, Guid imageID, out string errorMessage)
        {
            try
            {
                string   folder          = GetDocumentTemplatesFolder();
                FileInfo fileInfo        = new FileInfo(templatePath);
                string   newTemplateName = "template_" + Guid.NewGuid().ToString().Replace("-", string.Empty) + fileInfo.Extension;
                string   newTemplatePath = folder + "\\" + newTemplateName;
                File.Copy(templatePath, newTemplatePath);
                DocumentTemplate template = new DocumentTemplate();
                template.ID = Guid.NewGuid();
                template.ApplicationType = applicationType;
                template.Title           = title;
                template.Description     = description;
                lock (this.DocumentTemplates)
                {
                    this.DocumentTemplates.Add(template);
                }
            }
            catch (Exception ex)
            {
                errorMessage = ex.Message;
                return(false);
            }

            errorMessage = string.Empty;
            return(true);
        }
Пример #10
0
        public List <DocumentTemplate> GetDocumentTemplates(ApplicationTypes applicationType)
        {
            List <DocumentTemplate> documentTemplates = new List <DocumentTemplate>();

            documentTemplates.AddRange(this.AdministrativeConfiguration.DocumentTemplates.GetDocumentTemplates(applicationType));
            documentTemplates.AddRange(this.Configuration.DocumentTemplates.GetDocumentTemplates(applicationType));
            return(documentTemplates);
        }
        /// <summary>
        /// Loads AppSettings and ConnectionStrings to be consistent with .NET Framework ConfigurationManager class
        /// Profile 1 (.NET Core 2 and above):
        ///  RootConfigFile: ..\..\..\appsettings.{Environment}.json
        ///  AppSettingsConfigFile: ..\..\appsettings.{Environment}.json
        ///  ConnectionStringsConfigFile: ..\..\appsettings.{Environment}.json
        /// Profile 2 (.NET Core 1 and below):
        ///  RootConfigFile: ..\..\..\app.json
        ///  AppSettingsConfigFile: ..\..\App_Data\appsettings.json
        ///  ConnectionStringsConfigFile: ..\..\App_Data\connectionstrings.json
        /// File Format:
        /// "ConnectionStrings": {
        ///  "DefaultConnection": "Server=tcp:genesysframework.database.windows.net,1433;Initial Catalog=FrameworkData;user id=TestUser; password=57595709-9E9C-47EA-ABBF-4F3BAA1B0D37;Persist Security Info=False;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;Application Name=GoodToCodeFramework;",
        ///  "Example-LocalFile": "Data Source=(LocalDb)\\MSSQLLocalDB;Database=App_Data\\FrameworkData_Primary.mdf;Trusted_Connection=True;MultipleActiveResultSets=true;Application Name=GoodToCodeFramework;",
        ///  "Example-LocalSQL": "data source=.\\;initial catalog=FrameworkData;Integrated Security=True;Multipleactiveresultsets=True;Application Name=GoodToCodeFramework;",
        ///  "Example-SQLServer": "data source=DatabaseServer.test.goodtocode.com;initial catalog=FrameworkData;user id=TestUser; password=57595709-9E9C-47EA-ABBF-4F3BAA1B0D37;Multipleactiveresultsets=True;Application Name=GoodToCodeFramework;",
        ///  "Example-EDMX": "metadata=res://*/GoodToCode.Framework.Test.csdl|res://*/GoodToCode.Framework.Test.ssdl|res://*/GoodToCode.Framework.Test.msl;provider=System.Data.SqlClient;provider connection string='data source=DatabaseServer.dev.GoodToCode.com;initial catalog=FrameworkData;integrated security=True;MultipleActiveResultSets=True;App=GoodToCodeExtensions'"
        /// },
        /// "AppSettings": {
        ///  "MyWebService": "https://framework-for-webapi.azurewebsites.net/v4",
        ///  "MyWebService-Local": "http://localhost:30004/v4",
        ///  "MyWebService-Public": "https://framework-for-webapi.azurewebsites.net/v4",
        ///  "TestAppSetting": "http://www.goodtocode.com"
        /// }
        /// </summary>
        public ConfigurationManagerCore(ApplicationTypes appType) : base(Directory.GetCurrentDirectory())
        {
#if (DEBUG)
            ThrowException = true;
#endif
            FrameworkType   = FrameworkTypes.Core;
            ApplicationType = appType;
            Initialize();
        }
Пример #12
0
        /// <summary>
        /// Loads the settings.
        /// </summary>
        /// <returns></returns>
        public List <ExplorerLocation> GetExplorerLocations(ApplicationTypes applicationType)
        {
            List <ExplorerLocation> explorerLocations = new List <ExplorerLocation>();

            explorerLocations.AddRange(ConfigurationManager.GetInstance().AdministrativeConfiguration.ExplorerConfiguration.ExplorerLocations[applicationType]);
            explorerLocations.AddRange(ConfigurationManager.GetInstance().Configuration.ExplorerConfiguration.ExplorerLocations[applicationType]);

            return(explorerLocations);
        }
Пример #13
0
        public List <ApplicationItemProperty> GetApplicationItemProperties(ApplicationTypes applicationType)
        {
            if (ApplicationItemProperties.ContainsKey(applicationType) == false)
            {
                ApplicationItemProperties.Add(applicationType, GetApplicationItemPropertiesFromAssembly(applicationType));
            }

            return(ApplicationItemProperties[applicationType]);
        }
        public FolderSetting GetFolderSetting(ApplicationTypes applicationType, Folder folder)
        {
            var query = from folderSetting in this
                        where folderSetting.Folder != null &&
                        folderSetting.Folder.GetUrl().Equals(folder.GetUrl(), StringComparison.InvariantCultureIgnoreCase) &&
                        folderSetting.ApplicationType.Equals(applicationType) == true
                        select folderSetting;

            return(query.SingleOrDefault());
        }
Пример #15
0
        private Task <ModelProtocol> createSimpleProtocolFrom(SnapshotProtocol snapshotProtocol)
        {
            var applicationType = ApplicationTypes.ByName(snapshotProtocol.ApplicationType);
            var simpleProtocol  = _protocolFactory.Create(ProtocolMode.Simple, applicationType).DowncastTo <SimpleProtocol>();

            simpleProtocol.DosingInterval    = DosingIntervals.ById(snapshotProtocol.DosingInterval);
            simpleProtocol.TargetOrgan       = snapshotProtocol.TargetOrgan;
            simpleProtocol.TargetCompartment = snapshotProtocol.TargetCompartment;
            return(Task.FromResult <ModelProtocol>(simpleProtocol));
        }
 public List <TaskListLocation> this[ApplicationTypes applicationType]
 {
     get
     {
         var query = from el in this
                     where el.ApplicationTypes.Contains(applicationType) == true
                     select el;
         return(query.ToList());
     }
 }
Пример #17
0
        private static string GetAuthorizationEndpoint(ApplicationTypes appType)
        {
            switch (appType)
            {
            case ApplicationTypes.MP: return(AUTHENTICATION_ENDPOINT_MP);

            case ApplicationTypes.Web: return(AUTHENTICATION_ENDPOINT_WEB);

            default: return(AUTHENTICATION_ENDPOINT_MP);
            }
        }
        public FolderSettings GetFolderSettings(ApplicationTypes applicationType)
        {
            var query = from folderSetting in this
                        where folderSetting.ApplicationType == applicationType
                        select folderSetting;
            List <FolderSetting> folderSettingArray = query.ToList();
            FolderSettings       folderSettings     = new FolderSettings();

            folderSettings.AddRange(folderSettingArray);
            return(folderSettings);
        }
Пример #19
0
        private static string GetAuthenticationType(ApplicationTypes appType)
        {
            switch (appType)
            {
            case ApplicationTypes.MP: return(WeChatAuthenticationTypes.MP);

            case ApplicationTypes.Web: return(WeChatAuthenticationTypes.Web);

            default: return(WeChatAuthenticationTypes.MP);
            }
        }
Пример #20
0
 public ModifierInfo(string modifier, string modClass, string modifierType, string translation, bool percent)
 {
     Target              = "";
     ModifierClass       = modClass;
     Modifier            = modifier;
     ModifierType        = modifierType;
     ModifierTranslation = translation;
     Percent             = percent;
     ApplicationType     = ApplicationTypes.ApplyToEntity;
     UsageType           = UsageTypes.Multiply;
     Amount              = 1;
 }
Пример #21
0
        public override async Task <ModelSchemaItem> MapToModel(SnapshotSchemaItem snapshot)
        {
            var applicationType = ApplicationTypes.ByName(snapshot.ApplicationType);
            var schemaItem      = _schemaItemFactory.Create(applicationType);

            MapSnapshotPropertiesToModel(snapshot, schemaItem);
            await UpdateParametersFromSnapshot(snapshot, schemaItem, PKSimConstants.ObjectTypes.SchemaItem);

            schemaItem.FormulationKey    = snapshot.FormulationKey;
            schemaItem.TargetOrgan       = snapshot.TargetOrgan;
            schemaItem.TargetCompartment = snapshot.TargetCompartment;
            return(schemaItem);
        }
Пример #22
0
        public void SetFolderSetting(ApplicationTypes applicationType, FolderSetting folderSetting)
        {
            FolderSettings folderSettings = this.Configuration.FolderSettings.GetFolderSettings(applicationType);

            if (folderSettings[folderSetting.Folder.GetUrl()] != null)
            {
                folderSettings[folderSetting.Folder.GetUrl()] = folderSetting;
            }
            else
            {
                this.Configuration.FolderSettings.Add(folderSetting);
            }
        }
Пример #23
0
        public static Entity CreateApplication(IOrganizationService service, ApplicationTypes applicationType = ApplicationTypes.NewApplication, Guid?permitId = null)
        {
            Entity newApplicationEntity =
                new Entity(Application.EntityLogicalName)
            {
                [Application.Name]            = "Integration Test " + DateTime.Now,
                [Application.ApplicationType] = new OptionSetValue((int)applicationType),
                [Application.Permit]          = permitId.HasValue ? new EntityReference(Permit.EntityLogicalName, permitId.Value) : null
            };
            Guid newApplicationId = service.Create(newApplicationEntity);

            newApplicationEntity.Id = newApplicationId;
            return(newApplicationEntity);
        }
Пример #24
0
        public override TDomainEntity GetModel <TDomainEntity>(DtoBase dtoModel)
        {
            if (TypesEqual <ClientDto>(dtoModel))
            {
                var clientDto = (ClientDto)dtoModel;
                return(new Domain.Entity.Client.Client
                {
                    Active = clientDto.Active,
                    ClientSecret = clientDto.ClientSecret,
                    AllowedOrigin = clientDto.AllowedOrigin,
                    Username = clientDto.Username,
                    ApplicationType = clientDto.ApplicationType,
                    Id = clientDto.Id,
                    RefreshTokenLifeTime = clientDto.RefreshTokenLifeTime
                } as TDomainEntity);
            }
            if (TypesEqual <ClientNoSecretDto>(dtoModel))
            {
                var clientDto = (ClientNoSecretDto)dtoModel;
                return(new Domain.Entity.Client.Client
                {
                    Active = clientDto.Active,
                    AllowedOrigin = clientDto.AllowedOrigin,
                    Username = clientDto.Username,
                    ApplicationType = clientDto.ApplicationType,
                    Id = clientDto.Id,
                    RefreshTokenLifeTime = clientDto.RefreshTokenLifeTime
                } as TDomainEntity);
            }
            if (TypesEqual <ClientPostDto>(dtoModel))
            {
                var clientDto = (ClientPostDto)dtoModel;

                ApplicationTypes applicationType = ApplicationTypes.NativeConfidential;
                if (clientDto.ApplicationType == 0)
                {
                    applicationType = ApplicationTypes.JavaScript;
                }

                return(new Domain.Entity.Client.Client
                {
                    Active = clientDto.Active,
                    AllowedOrigin = clientDto.AllowedOrigin,
                    Username = clientDto.Username,
                    ApplicationType = applicationType,
                    RefreshTokenLifeTime = clientDto.RefreshTokenLifeTime
                } as TDomainEntity);
            }
            return(null);
        }
        public void ProcessShipment(ApplicationTypes shipmentType, string shipmentId)
        {
            SetButtons(false);
            switch (shipmentType)
            {
            case ApplicationTypes.UpsWorldShip:
                _controller.StartShipmentApplication <IShipmentApplicationAdapter, IShipmentApplicationHelper>(ApplicationTypes.UpsWorldShip.ToString(), shipmentId);
                break;

            case ApplicationTypes.FedExShipmentManager:
                _controller.StartShipmentApplication <IShipmentApplicationAdapter, IShipmentApplicationHelper>(ApplicationTypes.FedExShipmentManager.ToString(), shipmentId);
                break;
            }
            SetButtons(true);
        }
Пример #26
0
        public string GetMappedServicePropertyName(ApplicationTypes applicationType, string url, string applicationPropertyName, string contentTypeID)
        {
            FolderSetting folderSetting = GetFolderSettings(applicationType)[url];

            if (folderSetting == null)
            {
                return(String.Empty);
            }
            ItemPropertyMapping itemPropertyMapping = folderSetting.ItemPropertyMappings.SingleOrDefault(em => em.ContentTypeID.Equals(contentTypeID, StringComparison.InvariantCultureIgnoreCase) && em.ApplicationPropertyName.Equals(applicationPropertyName, StringComparison.InvariantCultureIgnoreCase) && string.IsNullOrEmpty(em.ServicePropertyName) == false);

            if (itemPropertyMapping != null)
            {
                return(itemPropertyMapping.ServicePropertyName);
            }
            return(String.Empty);
        }
Пример #27
0
 public Client AddClient(string clientId, string secret, string name, ApplicationTypes type, bool active, int lifeTime,
     string allowedOrigin = "*")
 {
     var client = new Client
     {
         ClientId = clientId,
         Active = active,
         Secret = StringHelper.GetHash(secret),
         AllowedOrigin = allowedOrigin,
         ApplicationType = type,
         Name = name,
         RefreshTokenLifeTime = lifeTime
     };
     DatabaseService.Save(client);
     return client;
 }
        public FolderSetting GetDefaultFolderSetting(ApplicationTypes applicationType)
        {
            var query = from folderSetting in this
                        where folderSetting.ApplicationType.Equals(applicationType) == true &&
                        folderSetting.Folder == null
                        select folderSetting;
            FolderSetting fs = query.SingleOrDefault();

            if (fs == null)
            {
                fs = new FolderSetting();
                fs.ApplicationType = applicationType;
                this.Add(fs);
            }

            return(fs);
        }
Пример #29
0
        public void Parse(string lua)
        {
            string ext = "";

            if (Extension != "")
            {
                ext = @"\[""" + Extension + @"""\]";
            }
            Match m = Regex.Match(lua, ext + @"(\[""area_effect""\]\[""weapon_damage""\])?\[""" + ModifierClass + @"""\]\[""" + Modifier + @"""\](\[""modifier""\])?\[""application_type""\]\s=\sReference\(\[\[type_modifierapplicationtype\\(?<applicationType>.*).lua\]\]\)");

            if (m.Success)
            {
                ApplicationType = GetApplicationType(m.Groups["applicationType"].Value);
            }
            m = Regex.Match(lua, ext + @"(\[""area_effect""\]\[""weapon_damage""\])?\[""" + ModifierClass + @"""\]\[""" + Modifier + @"""\](\[""modifier""\])?\[""usage_type""\]\s=\sReference\(\[\[type_modifierusagetype\\(?<usageType>.*).lua\]\]\)");
            if (m.Success)
            {
                UsageType = GetUsageType(m.Groups["usageType"].Value);
            }
            m = Regex.Match(lua, ext + @"(\[""area_effect""\]\[""weapon_damage""\])?\[""" + ModifierClass + @"""\]\[""" + Modifier + @"""\](\[""modifier""\])?\[""target_type_name""\]\s=\s""(?<target>.*)""");
            if (m.Success)
            {
                Target = m.Groups["target"].Value;
            }
            m = Regex.Match(lua, ext + @"(\[""area_effect""\]\[""weapon_damage""\])?\[""" + ModifierClass + @"""\]\[""" + Modifier + @"""\](\[""modifier""\])?\[""value""\]\s=\s(?<value>.*)");
            if (m.Success)
            {
                Amount = System.Convert.ToDouble(m.Groups["value"].Value, LuaParser.NumberFormat);
            }

            m = Regex.Match(lua, ext + @"(\[""area_effect""\]\[""weapon_damage""\])?\[""" + ModifierClass + @"""\]\[""" + Modifier + @"""\](\[""max_lifetime""\])\s=\s(?<lifeTime>.*)");
            if (m.Success)
            {
                try
                {
                    LifeTime = System.Convert.ToDouble(m.Groups["lifeTime"].Value, LuaParser.NumberFormat);
                }
                catch {}
            }
            m = Regex.Match(lua, ext + @"(\[""area_effect""\]\[""weapon_damage""\])?\[""" + ModifierClass + @"""\]\[""" + Modifier + @"""\]\[""modifier""\]?\[""exclusive""\]\s=\strue");
            if (m.Success)
            {
                DoNotStacks = true;
            }
        }
Пример #30
0
        public ApplicationDTO MapFrom(IContainer schemaItemContainer)
        {
            //schemaItemContainer are saved within en event group container
            var    eventGroup      = schemaItemContainer.ParentContainer as IEventGroup;
            string applicationIcon = string.Empty;

            if (eventGroup != null && !string.IsNullOrEmpty(eventGroup.EventGroupType))
            {
                applicationIcon = ApplicationTypes.ByName(eventGroup.EventGroupType).IconName;
            }

            var applicationDTO = new ApplicationDTO {
                Name = schemaItemContainer.ParentContainer.Name, Icon = applicationIcon
            };

            schemaItemContainer.AllParameters().Where(p => p.Visible).Each(p => applicationDTO.AddParameter(_parameterDTOMapper.MapFrom(p)));
            return(applicationDTO);
        }
Пример #31
0
        public WeChatAuthenticationOptions(string appId, string appSecret,
                                           ApplicationTypes appType, ScopeTypes scopeTypes,
                                           bool useUnionIdAsIdentity = false, bool isLoadUserInfo = false)
            : base(GetAuthenticationType(appType))

        {
            Caption               = GetAuthenticationType(appType);
            CallbackPath          = new PathString(CALLBACK_PATH);
            AuthenticationMode    = AuthenticationMode.Passive;
            BackchannelTimeout    = TimeSpan.FromSeconds(CALLBACK_TIMEOUT_SECOUNDS);
            AuthorizationEndpoint = GetAuthorizationEndpoint(appType);
            AppId                = appId;
            AppSecret            = appSecret;
            ScopeType            = scopeTypes;
            UseUnionIdAsIdentity = useUnionIdAsIdentity;
            IsLoadUserInfo       = isLoadUserInfo;

            AccessTokenContainer.Register(AppId, AppSecret);
        }
Пример #32
0
        //

        public WPFAppEngineApp(ApplicationTypes applicationType)
            : base(applicationType)
        {
            instance = this;
        }
Пример #33
0
 //
 public ExampleEngineApp( ApplicationTypes applicationType )
     : base(applicationType)
 {
     instance = this;
 }
Пример #34
0
 public MultiViewAppEngineApp( ApplicationTypes applicationType )
     : base(applicationType)
 {
     instance = this;
 }