This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Grid Background="#FFB2A3A3"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="90*"></RowDefinition> | |
<RowDefinition Height="10*"></RowDefinition> | |
</Grid.RowDefinitions> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition></ColumnDefinition> | |
<ColumnDefinition></ColumnDefinition> | |
<ColumnDefinition></ColumnDefinition> | |
</Grid.ColumnDefinitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int kactane = 0; | |
int i = 0; | |
for (i = 0; i < sizeof(dizi); i++) | |
{ | |
if (dizi[i] == '.') | |
{ | |
while (dizi[i] != '\0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomAuthProvider : ServiceStack.Auth.CredentialsAuthProvider | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plugins.Add(new AuthFeature(() => new AuthUserSession(), | |
new IAuthProvider[] { | |
new CustomAuthProvider() | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomAuthRepository : IUserAuthRepository | |
{ | |
private readonly SiteInformationDbContext _context; | |
public CustomAuthRepository() | |
{ | |
_context = new SiteInformationDbContext(); | |
} | |
public IUserAuthDetails CreateOrMergeAuthSession(IAuthSession authSession, IAuthTokens tokens) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void Configure(Container container) | |
{ | |
var userRepo = new SiteAuthRepository(); | |
container.Register<IUserAuthRepository>(userRepo); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace EventTower | |
{ | |
//Marker interface for messages | |
public interface IMessage | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace EventTower | |
{ | |
//Marker interface for commands | |
public interface ICommand : IMessage | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace EventTower | |
{ | |
//Marker interface for events | |
public interface IEvent : IMessage | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Route("/user/{UserId}/set/email", "POST")] | |
[Authenticate] | |
public class SetEmail : IReturn<bool> | |
{ | |
public Guid UserId { get; set; } | |
public string Email { get; set; } | |
} |
OlderNewer