コード例 #1
0
ファイル: Session.cs プロジェクト: liveswitch/liveswitch-mux
 private string ProcessOutputFileName(string outputFileName)
 {
     return(outputFileName
            .Replace("{applicationId}", ApplicationId)
            .Replace("{channelId}", ChannelId)
            .Replace("{sessionId}", Id.ToString())
            .Replace("{startTimestamp}", StartTimestamp.ToString(Iso8601FileSafeFormat))
            .Replace("{stopTimestamp}", StopTimestamp.ToString(Iso8601FileSafeFormat)));
 }
コード例 #2
0
        /// <summary>
        /// Build a string based on this class' info, error and debug messages and the exception strings
        /// </summary>
        /// <returns>A string representing the properties of this class</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Orchestrator Report (" + StartTimestamp.ToString() + " - " + DateTime.Now.ToString() + ")");
            sb.Append(base.ToString());

            return(sb.ToString());
        }
コード例 #3
0
 public override string ToString()
 {
     return
         ($"{GetType().Name}\n" +
          $"\tClientId: {ClientId.ToString()}\n" +
          $"\tDetails: {Details}\n" +
          $"\tState: {State}\n" +
          $"\tStartTimestamp: {StartTimestamp.ToString()}\n" +
          $"\tEndTimestamp: {EndTimestamp.ToString()}\n" +
          $"\tLargeImageKey: {LargeImageKey}\n" +
          $"\tLargeImageText: {LargeImageText}\n" +
          $"\tSmallImageKey: {SmallImageKey}\n" +
          $"\tSmallImageText: {SmallImageText}\n" +
          $"\tPartyId: {PartyId}\n" +
          $"\tPartySize: {PartySize.ToString()}\n" +
          $"\tPartyMax: {PartyMax.ToString()}\n" +
          $"\tMatchSecret: {MatchSecret}\n" +
          $"\tSpectateSecret: {SpectateSecret}\n" +
          $"\tJoinSecret: {JoinSecret}\n" +
          $"\tInstance: {Instance.ToString()}\n"
         );
 }