Skip to content

Instantly share code, notes, and snippets.

gistlyn

Block or report user

Report or block gistlyn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gistlyn
gistlyn / Configure.Contacts.cs
Last active Jul 27, 2019
Contacts Validation Example
View Configure.Contacts.cs
using System;
using System.Linq;
using System.Collections.Generic;
using ServiceStack;
using ServiceStack.Script;
using ServiceStack.Validation;
using MyApp.ServiceModel;
using MyApp.ServiceModel.Types;
namespace MyApp
@gistlyn
gistlyn / mix.md
Last active Aug 28, 2019
Mix Gists
View mix.md

Available Gists

Projects

  • init {to:'.'} project Empty .NET Core 2.2 ServiceStack App
  • init-lts {to:'.'} project Empty .NET Core 2.1 LTS ServiceStack App
  • init-corefx {to:'.'} project Empty ASP.NET Core 2.1 LTS on .NET Framework
  • init-sharp-app {to:'.'} project Empty ServiceStack Sharp App

UI Starter Templates

@gistlyn
gistlyn / Feature.UserAuth.cs
Last active Jul 17, 2019
List and Search Users registered in Auth Repository
View Feature.UserAuth.cs
using ServiceStack;
using ServiceStack.Script;
namespace MyApp
{
public class FeatureUserAuth : IConfigureAppHost, IPostInitPlugin
{
public void Configure(IAppHost appHost)
{
appHost.AssertPlugin<SharpPagesFeature>().ScriptMethods.Add(new UserAuthScripts());
@gistlyn
gistlyn / .gitignore
Last active Jul 8, 2019
Bare Sharp App
View .gitignore
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
@gistlyn
gistlyn / _assert-auth-partial.html
Last active Aug 19, 2019
Minimal, multi-user Twitter OAuth blogging platform that can create living, powerful pages
View _assert-auth-partial.html
{{#if !isAuthenticated }}
<p style="text-align: center">
Please <a href="/auth/twitter">Sign In</a> to add Posts
</p>
{{return}}
{{/if}}
@gistlyn
gistlyn / _layout.html
Last active Jun 29, 2019
Gist Test of truncated files
View _layout.html
<html>
<head>
<title>{{ title ?? 'Redis Vue WebApp' }}</title>
{{#if debug}}<script>{{ '/js/hot-loader.js' | includeFile }}</script>{{/if}}
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Redis Vue WebApp">
<meta name="author" content="ServiceStack">
<link href="/assets/img/redis-logo.png" rel="icon">
@gistlyn
gistlyn / _layout.html
Last active Aug 19, 2019
Simple, lightweight, versatile Redis Admin UI
View _layout.html
<html>
<head>
<title>{{ title ?? 'Redis Vue WebApp' }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Redis Vue WebApp">
<meta name="author" content="ServiceStack">
<link href="/assets/img/redis-logo.png" rel="icon">
<link rel="stylesheet" href="/css/bootstrap.css">
@gistlyn
gistlyn / _layout.html
Last active Aug 19, 2019
Explore and generate different Spirals with SVG
View _layout.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ title }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<style>
@gistlyn
gistlyn / apps.md
Last active Aug 4, 2019
Live Gist Apps
View apps.md
  • redis {} redis Simple, lightweight, versatile Redis Admin UI
  • spirals {} svg Explore and generate different Spirals with SVG
  • blog {} sqlite Minimal, multi-user Twitter Auth blogging app
  • rockwind {} example Example combining Rockstars website + data-driven Northwind Browser
  • redis-html {} redis Redis Admin Viewer developed as server-generated HTML Website
  • plugins {} example Extend Apps with Plugins, ServiceStack Services and other C# extensions
  • chat {} example Extensible App with custom AppHost leveraging OAuth + SSE for real-time Chat
  • [bare](https://gist.github.com/gistly
@gistlyn
gistlyn / Configure.Mq.cs?
Last active Jul 28, 2019
Add /messaging pages and Services to test sending MQ messages
View Configure.Mq.cs?
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using ServiceStack;
using ServiceStack.Messaging;
namespace MyApp
{
/**
Register Services you want available via MQ in your AppHost, e.g:
var mqServer = container.Resolve<IMessageService>();
You can’t perform that action at this time.