Windows only change. Created and Add Novell.Casa.MiCasa.dll to the GAC.

This commit is contained in:
Jim Norman
2006-11-09 11:05:03 +00:00
parent 3a44ee8211
commit b19f7245bd
17 changed files with 2088 additions and 749 deletions

View File

@@ -21,7 +21,7 @@
***********************************************************************/
using System;
using Novell.CASA;
using Novell.Casa;
namespace cSharpTest
{
@@ -43,7 +43,7 @@ namespace cSharpTest
static void Main(string[] args)
{
Console.WriteLine("**************************************************");
Console.WriteLine("********** miCASA Sample written in C# ***********");
Console.WriteLine("********** MiCasa Sample written in C# ***********");
Console.WriteLine("**************************************************");
ShowMenu();
}
@@ -102,10 +102,10 @@ namespace cSharpTest
{
try
{
//miCASA.SetBasicCredential(sID, null, sUsername, sPassword);
miCASA.SetCredential(0, sID, null, miCASA.USERNAME_TYPE_CN_F, sUsername, sPassword);
//MiCasa.SetBasicCredential(sID, null, sUsername, sPassword);
MiCasa.SetCredential(0, sID, null, MiCasa.USERNAME_TYPE_CN_F, sUsername, sPassword);
}
catch (miCasaException e)
catch (MiCasaException e)
{
Console.WriteLine(e.getMessage());
}
@@ -127,9 +127,9 @@ namespace cSharpTest
{
try
{
miCASA.RemoveBasicCredential(sID, null);
MiCasa.RemoveBasicCredential(sID, null);
}
catch (miCasaException e)
catch (MiCasaException e)
{
Console.WriteLine(e.getMessage());
}
@@ -145,8 +145,8 @@ namespace cSharpTest
try
{
BasicCredential bc;
//bc = miCASA.GetBasicCredential(sID, null);
bc = miCASA.GetCredential(0, sID, null, miCASA.USERNAME_TYPE_CN_F);
//bc = MiCasa.GetBasicCredential(sID, null);
bc = MiCasa.GetCredential(0, sID, null, MiCasa.USERNAME_TYPE_CN_F);
if (bc != null)
{
Console.WriteLine("Data for "+sID);
@@ -162,7 +162,7 @@ namespace cSharpTest
else
Console.WriteLine(sID + " not found");
}
catch (miCasaException e)
catch (MiCasaException e)
{
Console.WriteLine(e.getMessage());
}
@@ -192,7 +192,7 @@ namespace cSharpTest
Console.Write("Setting Credential .....");
try
{
miCASA.SetBasicCredential(APPID, null, USERNAME, PASSWORD);
MiCasa.SetBasicCredential(APPID, null, USERNAME, PASSWORD);
Console.WriteLine("Succeeded");
}
catch (Exception e)
@@ -209,7 +209,7 @@ namespace cSharpTest
Console.WriteLine("Getting Credential .....");
try
{
BasicCredential bc = miCASA.GetBasicCredential(APPID, null);
BasicCredential bc = MiCasa.GetBasicCredential(APPID, null);
if (bc != null)
{
if (bc.GetUsername().Equals(USERNAME))
@@ -230,7 +230,7 @@ namespace cSharpTest
try
{
Console.WriteLine("\r\nRemoving Credential");
miCASA.RemoveBasicCredential(APPID, null);
MiCasa.RemoveBasicCredential(APPID, null);
}
catch (Exception e)
{
@@ -240,7 +240,7 @@ namespace cSharpTest
try
{
BasicCredential bc = miCASA.GetBasicCredential(APPID, null);
BasicCredential bc = MiCasa.GetBasicCredential(APPID, null);
if (bc != null)
{
Console.WriteLine("\r\nCredential exists and should not - FAILED!");

View File

@@ -82,11 +82,6 @@
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<ProjectReference Include="..\..\sharp\NSSCSWrapper\Novell.CASA.miCASAWrapper.csproj">
<Name>Novell.CASA.miCASAWrapper</Name>
<Project>{E21DD887-22F4-4935-9851-409715F663B0}</Project>
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="App.ico" />
@@ -97,6 +92,12 @@
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\sharp\Novell.Casa.MiCasa\Novell.Casa.MiCasa.csproj">
<Project>{7B56383F-6551-4BCD-81BB-A039BBECBD9C}</Project>
<Name>Novell.Casa.MiCasa</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>