code guidelines
This commit is contained in:
parent
58fb8cd530
commit
492427f4b8
82 changed files with 470 additions and 375 deletions
|
|
@ -5,7 +5,7 @@ namespace Yavsc.Attributes.Validation
|
|||
public partial class YaStringLength: YaValidationAttribute
|
||||
{
|
||||
public long MinimumLength { get; set; } = 0;
|
||||
private long maxLen;
|
||||
private readonly long maxLen;
|
||||
public YaStringLength(long maxLen) : base( ()=> "BadStringLength")
|
||||
{
|
||||
this.maxLen = maxLen;
|
||||
|
|
@ -50,4 +50,4 @@ namespace Yavsc.Attributes.Validation
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@ namespace Yavsc.Authentication
|
|||
readonly Uri accessTokenUrl;
|
||||
readonly Uri redirectUrl;
|
||||
readonly GetUsernameAsyncFunc getUsernameAsync;
|
||||
|
||||
string requestState;
|
||||
readonly string requestState;
|
||||
bool reportedForgery = false;
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ namespace Yavsc.Abstract.FileSystem
|
|||
{
|
||||
public interface IFileRecievedInfo
|
||||
{
|
||||
string MimeType { get; set; }
|
||||
|
||||
string DestDir { get; set; }
|
||||
|
||||
|
|
@ -12,4 +11,4 @@ namespace Yavsc.Abstract.FileSystem
|
|||
|
||||
bool QuotaOffensed { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Yavsc.ViewModels.UserFiles
|
|||
public DirectoryShortInfo [] SubDirectories {
|
||||
get; set;
|
||||
}
|
||||
private DirectoryInfo dInfo;
|
||||
private readonly DirectoryInfo dInfo;
|
||||
|
||||
// for deserialization
|
||||
public UserDirectoryInfo()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue