public ReplayPage() { InitializeComponent(); Download.Visibility = Visibility.Hidden; if (!Directory.Exists(Path.Combine(Client.ExecutingDirectory, "cabinet"))) Directory.CreateDirectory(Path.Combine(Client.ExecutingDirectory, "cabinet")); var waitAnimation = new DoubleAnimation(0, TimeSpan.FromSeconds(0.5)); waitAnimation.Completed += (o, e) => { var showAnimation = new DoubleAnimation(1, TimeSpan.FromSeconds(0.5)); }; Command.TextChanged += Command_TextChanged; #region Register Context context = new SerializationContext(); context.Register(typeof(EndOfReplayGameStats)); context.Register(typeof(ReplayParticipantStatsSummary)); context.Register(typeof(ReplayRawStatDTO)); #endregion Register Context UpdateReplays(); }
public ReplayPage() { InitializeComponent(); Download.Visibility = Visibility.Hidden; if (!Directory.Exists("cabinet")) Directory.CreateDirectory("cabinet"); var waitAnimation = new DoubleAnimation(0, TimeSpan.FromSeconds(0.5)); waitAnimation.Completed += (o, e) => { var showAnimation = new DoubleAnimation(1, TimeSpan.FromSeconds(0.5)); //ReplayGrid.BeginAnimation(Grid.OpacityProperty, showAnimation); }; //ReplayGrid.BeginAnimation(Grid.OpacityProperty, waitAnimation); Command.TextChanged += Command_TextChanged; #region Register Context context = new SerializationContext(); //Convert replay end of game stats to parsable object context.Register(typeof(EndOfGameStats)); context.Register(typeof(PlayerParticipantStatsSummary)); context.Register(typeof(RawStatDTO)); #endregion Register Context UpdateReplays(); }
public RtmpProxySource(SerializationContext serializationContext) { if (serializationContext == null) throw new ArgumentNullException("serializationContext"); this.serializationContext = serializationContext; callbackManager = new TaskCallbackManager<int, object>(); }
public RtmpServer(IPEndPoint ServerEndPoint, SerializationContext context, X509Certificate2 certificate) : this(ServerEndPoint, context) { SSL = true; Certificate = certificate; string ServerUri = string.Format("rtmps://{0}:{1}", _serverEndPoint.Address, _serverEndPoint.Port); _serverUri = new Uri(ServerUri); }
public ObjectWrapperFactory(SerializationContext serializationContext) { this.serializationContext = serializationContext; defaultWrapper = new BasicObjectWrapper(serializationContext); wrappers[typeof(AsObject)] = new AsObjectWrapper(serializationContext); wrappers[typeof(IExternalizable)] = new ExternalizableWrapper(serializationContext); wrappers[typeof(Exception)] = new ExceptionWrapper(serializationContext); }
public RtmpProxy(IPEndPoint source, Uri remote, SerializationContext context, X509Certificate2 cert = null) { //SubscribedChannels = new List<string>(); _cert = cert; _serializationContext = context; _remoteUri = remote; _sourceEndpoint = source; _listener=new TcpListener(source); }
public RtmpServer(IPEndPoint ServerEndPoint, SerializationContext context) { _serverEndPoint = ServerEndPoint; _listener = new TcpListener(_serverEndPoint); _context = context; if (_context == null) _context = new SerializationContext(); _clients = new List<RtmpClient>(); string ServerUri = string.Format("rtmp://{0}:{1}", _serverEndPoint.Address, _serverEndPoint.Port); _serverUri = new Uri(ServerUri); }
public Client(Region region, string username, string password, string ip, SerializationContext context) { Data = new Account { Username = username, Password = password, Region = region, Refunds = 0 }; IsCompleted = new TaskCompletionSource<bool>(); _pvpnet = new PvpClient(username, password, region, Settings.Config.ClientVersion) { SerializationContext = context, LoLIpAddress = ip }; _pvpnet.OnError += OnError; GetData(); }
/// <summary> /// Initializes a new instance of the AMFDeserializer class. /// </summary> /// <param name="stream"></param> public AmfPacketDeserializer(Stream stream, SerializationContext serializationContext) : base(stream, serializationContext) { }
static RtmpSharpData() { RtmpSharpData.SerializableTypes = RiotDto.GetSerializableTypes().ToArray<Type>(); RtmpSharpData.SerializationContext = new SerializationContext(RtmpSharpData.SerializableTypes); }
public LolProxy(IPEndPoint source, Uri remote, SerializationContext context, X509Certificate2 cert = null) : base(source, remote, context, cert) { AcknowledgeMessageReceived += LolProxy_AcknowledgeMessageReceived; CommandMessageReceived += LolProxy_ClientCommandReceived; }
public RtmpProxySource(SerializationContext serializationContext, Stream stream) : this(serializationContext) { DoHandshake(stream); EstablishThreads(stream); objectEncoding = ObjectEncoding.Amf3; }
public AsObjectConverter(SerializationContext serializationContext) { this.serializationContext = serializationContext; }
public AsObjectConverter() { this.serializationContext = DefaultSerializationContext; }