mirror of
				https://github.com/wagesj45/mdfinder.git
				synced 2025-09-09 03:20:38 -05:00 
			
		
		
		
	Period Checkin
This commit is contained in:
		
					parent
					
						
							
								f81e4f13da
							
						
					
				
			
			
				commit
				
					
						be05120bdb
					
				
			
		
					 28 changed files with 1542 additions and 43 deletions
				
			
		
							
								
								
									
										38
									
								
								mdfinder.hashprovider/IHashProvider.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								mdfinder.hashprovider/IHashProvider.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,38 @@
 | 
			
		|||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.IO;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
 | 
			
		||||
namespace mdfinder.hashprovider
 | 
			
		||||
{
 | 
			
		||||
    public interface IHashProvider
 | 
			
		||||
    {
 | 
			
		||||
        /// <summary> Gets the name of the hash provider. </summary>
 | 
			
		||||
        /// <value> The name of the hash provider. </value>
 | 
			
		||||
        string Name { get; }
 | 
			
		||||
 | 
			
		||||
        /// <summary> Gets the description of the hash provider. </summary>
 | 
			
		||||
        /// <value> The description. </value>
 | 
			
		||||
        string Description { get; }
 | 
			
		||||
 | 
			
		||||
        /// <summary> Gets a value indicating if this hash provider is valid to use. </summary>
 | 
			
		||||
        /// <value> The value indicating if the hash provider is valid. </value>
 | 
			
		||||
        /// <remarks> This value can be used by hash providers to limit use of the provider. This can be used to create paid hash providers. </remarks>
 | 
			
		||||
        bool IsValid { get; }
 | 
			
		||||
 | 
			
		||||
        /// <summary> Gets or sets the priority this provider has when multiple providers support the same extension. </summary>
 | 
			
		||||
        /// <value> The priority of the hash provider. </value>
 | 
			
		||||
        int Priority { get; set; }
 | 
			
		||||
 | 
			
		||||
        /// <summary> Gets the file extensions that this hash provider can work with. </summary>
 | 
			
		||||
        /// <value> The file extensions the hash provider works with. </value>
 | 
			
		||||
        IEnumerable<string> FileExtensions { get; }
 | 
			
		||||
 | 
			
		||||
        /// <summary> Gets a hash from a file. </summary>
 | 
			
		||||
        /// <param name="file"> The file to hash. </param>
 | 
			
		||||
        /// <returns> The hash. </returns>
 | 
			
		||||
        string GetHash(FileInfo file);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										36
									
								
								mdfinder.hashprovider/Properties/AssemblyInfo.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								mdfinder.hashprovider/Properties/AssemblyInfo.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,36 @@
 | 
			
		|||
using System.Reflection;
 | 
			
		||||
using System.Runtime.CompilerServices;
 | 
			
		||||
using System.Runtime.InteropServices;
 | 
			
		||||
 | 
			
		||||
// General Information about an assembly is controlled through the following
 | 
			
		||||
// set of attributes. Change these attribute values to modify the information
 | 
			
		||||
// associated with an assembly.
 | 
			
		||||
[assembly: AssemblyTitle("mdfinder.hashprovider")]
 | 
			
		||||
[assembly: AssemblyDescription("")]
 | 
			
		||||
[assembly: AssemblyConfiguration("")]
 | 
			
		||||
[assembly: AssemblyCompany("")]
 | 
			
		||||
[assembly: AssemblyProduct("mdfinder.hashprovider")]
 | 
			
		||||
[assembly: AssemblyCopyright("Copyright ©  2019")]
 | 
			
		||||
[assembly: AssemblyTrademark("")]
 | 
			
		||||
[assembly: AssemblyCulture("")]
 | 
			
		||||
 | 
			
		||||
// Setting ComVisible to false makes the types in this assembly not visible
 | 
			
		||||
// to COM components.  If you need to access a type in this assembly from
 | 
			
		||||
// COM, set the ComVisible attribute to true on that type.
 | 
			
		||||
[assembly: ComVisible(false)]
 | 
			
		||||
 | 
			
		||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
 | 
			
		||||
[assembly: Guid("f383e2d1-f62e-44cf-9e58-63542dcbd06e")]
 | 
			
		||||
 | 
			
		||||
// Version information for an assembly consists of the following four values:
 | 
			
		||||
//
 | 
			
		||||
//      Major Version
 | 
			
		||||
//      Minor Version
 | 
			
		||||
//      Build Number
 | 
			
		||||
//      Revision
 | 
			
		||||
//
 | 
			
		||||
// You can specify all the values or you can default the Build and Revision Numbers
 | 
			
		||||
// by using the '*' as shown below:
 | 
			
		||||
// [assembly: AssemblyVersion("1.0.*")]
 | 
			
		||||
[assembly: AssemblyVersion("1.0.0.0")]
 | 
			
		||||
[assembly: AssemblyFileVersion("1.0.0.0")]
 | 
			
		||||
							
								
								
									
										48
									
								
								mdfinder.hashprovider/mdfinder.hashprovider.csproj
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								mdfinder.hashprovider/mdfinder.hashprovider.csproj
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,48 @@
 | 
			
		|||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 | 
			
		||||
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
 | 
			
		||||
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
 | 
			
		||||
    <ProjectGuid>{F383E2D1-F62E-44CF-9E58-63542DCBD06E}</ProjectGuid>
 | 
			
		||||
    <OutputType>Library</OutputType>
 | 
			
		||||
    <AppDesignerFolder>Properties</AppDesignerFolder>
 | 
			
		||||
    <RootNamespace>mdfinder.hashprovider</RootNamespace>
 | 
			
		||||
    <AssemblyName>mdfinder.hashprovider</AssemblyName>
 | 
			
		||||
    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
 | 
			
		||||
    <FileAlignment>512</FileAlignment>
 | 
			
		||||
    <Deterministic>true</Deterministic>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
 | 
			
		||||
    <DebugSymbols>true</DebugSymbols>
 | 
			
		||||
    <DebugType>full</DebugType>
 | 
			
		||||
    <Optimize>false</Optimize>
 | 
			
		||||
    <OutputPath>bin\Debug\</OutputPath>
 | 
			
		||||
    <DefineConstants>DEBUG;TRACE</DefineConstants>
 | 
			
		||||
    <ErrorReport>prompt</ErrorReport>
 | 
			
		||||
    <WarningLevel>4</WarningLevel>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
 | 
			
		||||
    <DebugType>pdbonly</DebugType>
 | 
			
		||||
    <Optimize>true</Optimize>
 | 
			
		||||
    <OutputPath>bin\Release\</OutputPath>
 | 
			
		||||
    <DefineConstants>TRACE</DefineConstants>
 | 
			
		||||
    <ErrorReport>prompt</ErrorReport>
 | 
			
		||||
    <WarningLevel>4</WarningLevel>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Reference Include="System" />
 | 
			
		||||
    <Reference Include="System.Core" />
 | 
			
		||||
    <Reference Include="System.Xml.Linq" />
 | 
			
		||||
    <Reference Include="System.Data.DataSetExtensions" />
 | 
			
		||||
    <Reference Include="Microsoft.CSharp" />
 | 
			
		||||
    <Reference Include="System.Data" />
 | 
			
		||||
    <Reference Include="System.Net.Http" />
 | 
			
		||||
    <Reference Include="System.Xml" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Compile Include="IHashProvider.cs" />
 | 
			
		||||
    <Compile Include="Properties\AssemblyInfo.cs" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 | 
			
		||||
</Project>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue