Skip to content

Commit

Permalink
Restore openicf-dotnet-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko committed Jun 28, 2024
2 parents 8a35cd8 + bd8c63a commit 1a53195
Show file tree
Hide file tree
Showing 173 changed files with 61,530 additions and 0 deletions.
185 changes: 185 additions & 0 deletions dotnet/framework/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc

# OS generated files #
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings
modulesbin/
tempbin/

# EPiServer Site file (VPP)
AppData/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# vim
*.txt~
*.swp
*.swo

# svn
.svn

# SQL Server files
**/App_Data/*.mdf
**/App_Data/*.ldf
**/App_Data/*.sdf


#LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac desktop service store files
.DS_Store

# SASS Compiler cache
.sass-cache

# Visual Studio 2014 CTP
**/*.sln.ide

# OpenICF
**/version.txt
**/AssemblyInfo.cs
Dist/
FrameworkProtoBuf/*.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* ====================
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008-2009 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Common Development
* and Distribution License("CDDL") (the "License"). You may not use this file
* except in compliance with the License.
*
* You can obtain a copy of the License at
* http://opensource.org/licenses/cddl1.php
* See the License for the specific language governing permissions and limitations
* under the License.
*
* When distributing the Covered Code, include this CDDL Header Notice in each file
* and include the License file at http://opensource.org/licenses/cddl1.php.
* If applicable, add the following below this CDDL Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
* ====================
* Portions Copyrighted 2014 ForgeRock AS.
*/

using System.Reflection;
using System.Collections.Generic;
using Boo.Lang.Interpreter;
using Boo.Lang.Compiler;

namespace Org.IdentityConnectors.Common.Script.Boo
{
[ScriptExecutorFactoryClass("Boo")]
public class BooScriptExecutorFactory : ScriptExecutorFactory
{
/// <summary>
/// Attempt to trigger an exception if the runtime is not present.
/// </summary>
public BooScriptExecutorFactory()
{
new BooScriptExecutor(new Assembly[0], "1").Execute(null);
}

/// <summary>
/// Creates a script executor give the Boo script.
/// </summary>
override
public ScriptExecutor NewScriptExecutor(Assembly[] referencedAssemblies, string script, bool compile)
{
return new BooScriptExecutor(referencedAssemblies, script);
}

/// <summary>
/// Processes the script.
/// </summary>
class BooScriptExecutor : ScriptExecutor
{
private readonly Assembly[] _referencedAssemblies;
private readonly string _script;
private readonly InteractiveInterpreter _engine;

public BooScriptExecutor(Assembly[] referencedAssemblies, string script)
{
_referencedAssemblies = referencedAssemblies;
_script = script;
_engine = new InteractiveInterpreter();
_engine.RememberLastValue = true;
foreach (Assembly assembly in referencedAssemblies)
{
_engine.References.Add(assembly);
}
}
public object Execute(IDictionary<string, object> arguments)
{
// add all the globals
IDictionary<string, object> args = CollectionUtil.NullAsEmpty(arguments);
foreach (KeyValuePair<string, object> entry in args)
{
_engine.SetValue(entry.Key, entry.Value);
}
CompilerContext context = _engine.Eval(_script);
if (context.Errors.Count > 0)
{
throw context.Errors[0];
}
return _engine.LastValue;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
====================
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 2008-2009 Sun Microsystems, Inc. All rights reserved.
The contents of this file are subject to the terms of the Common Development
and Distribution License("CDDL") (the "License"). You may not use this file
except in compliance with the License.
You can obtain a copy of the License at
http://IdentityConnectors.dev.java.net/legal/license.txt
See the License for the specific language governing permissions and limitations
under the License.
When distributing the Covered Code, include this CDDL Header Notice in each file
and include the License file at identityconnectors/legal/license.txt.
If applicable, add the following below this CDDL Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
====================
-->
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{0747C440-70E4-4E63-9F9D-03B3A010C991}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputType>Library</OutputType>
<RootNamespace>Org.IdentityConnectors.Common.Script.Boo</RootNamespace>
<AssemblyName>Boo.ScriptExecutorFactory</AssemblyName>
<ProductName>Boo ScriptExecutor Factory</ProductName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<OutputPath>bin\Debug\</OutputPath>
<DebugSymbols>True</DebugSymbols>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugType>pdbonly</DebugType>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<Optimize>True</Optimize>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Boo.Lang">
<HintPath>lib\Boo.Lang.dll</HintPath>
</Reference>
<Reference Include="Boo.Lang.Compiler">
<HintPath>lib\Boo.Lang.Compiler.dll</HintPath>
</Reference>
<Reference Include="Boo.Lang.Interpreter">
<HintPath>lib\Boo.Lang.Interpreter.dll</HintPath>
</Reference>
<Reference Include="Boo.Lang.Parser">
<HintPath>lib\Boo.Lang.Parser.dll</HintPath>
</Reference>
<Reference Include="Boo.Lang.Useful">
<HintPath>lib\Boo.Lang.Useful.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="BooScriptExecutorFactory.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Common\Common.csproj">
<Project>{F140E8DA-52B4-4159-992A-9DA10EA8EEFB}</Project>
<Name>Common</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildProjectDirectory)\..\Framework.targets" />
<Target Name="Clean">
<Delete Files="AssemblyInfo.cs;version.txt" />
<RemoveDir Directories="obj;bin" />
</Target>
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions dotnet/framework/BooScriptExecutorFactory/version.template
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.5.0.0
Loading

0 comments on commit 1a53195

Please sign in to comment.