This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Security.Cryptography; | |
using ServiceStack.Text; | |
namespace FragLabs.VOIP.Common.DTOs | |
{ | |
/// <summary> | |
/// Base class for DTOs that must be securely signed using the RSA algorithm. | |
/// </summary> |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace FragLabs.Adjutant.API.Server.Extensions | |
{ | |
/// <summary> | |
/// Extension loader. |
This file contains hidden or 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 interface IService<out TResponse, in TRequest> | |
{ | |
TResponse Call(TRequest request); | |
} | |
public interface IPlayTrack : IService<MediaControlResponse,MediaFile>{} |
This file contains hidden or 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
private IPath AStar(SquareGridWorldLocation start, SquareGridWorldLocation goal, NetworkType validNodeTypes) | |
{ | |
var closedSet = new Dictionary<int, Node>(); | |
var openSet = new Dictionary<int, Node> {{start.GetHashCode(), new Node() {WorldLocation = start}}}; | |
var cameFrom = new Dictionary<int, Node>(); | |
while (openSet.Count > 0) | |
{ | |
var current = Lowest(openSet); | |
if (current.WorldLocation.Equals(goal)) |
This file contains hidden or 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 ProjectX.API.App_Start | |
{ | |
public class AppHost | |
: AppHostBase | |
{ | |
public static OrmLiteConnectionFactory Database { get; set; } | |
public AppHost() //Tell ServiceStack the name and where to find your web services | |
: base("ProjectX Restful API", typeof(Services.ArtistService).Assembly) { } |
This file contains hidden or 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
class SomeThing | |
{ | |
public SomeThing(IFoo foo, IBar bar) | |
{ | |
} | |
} | |
interface IFoo {} | |
interface IBar {} |
This file contains hidden or 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
using System; | |
using FragLabs.Adjutant.Network.Interfaces; | |
namespace FragLabs.Adjutant.Network.Crypto | |
{ | |
public class EncryptedClient : MarshalByRefObject, IClient | |
{ | |
private readonly IClient _baseClient; | |
private readonly ISecurityCredentials _credentials; | |
private readonly ICredentialsVerifier _verifier; |
This file contains hidden or 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
using System; | |
using System.IO; | |
using System.Windows; | |
using FragLabs.Audio.Engines; | |
using FragLabs.Audio.Engines.OpenAL; | |
namespace VoiceRecognition | |
{ | |
/// <summary> | |
/// Interaction logic for MainWindow.xaml |
This file contains hidden or 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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace FragLabs.Adjutant.API.Interfaces | |
{ | |
/// <summary> | |
/// Data access provider. | |
/// </summary> | |
public interface IDataProvider |
This file contains hidden or 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
using System; | |
using System.IO; | |
using System.Windows; | |
using FragLabs.Audio.Engines; | |
using FragLabs.Audio.Engines.OpenAL; | |
namespace VoiceRecognition | |
{ | |
/// <summary> | |
/// Interaction logic for MainWindow.xaml |