コード例 #1
0
 public WorkDetailController(IIssueLog issueLogService, IProject projectService, IInvolvedPerson involvedPersonService, UserManager <ApplicationUser> userManager)
 {
     _issueLogService       = issueLogService;
     _projectService        = projectService;
     _involvedPersonService = involvedPersonService;
     _userManager           = userManager;
 }
コード例 #2
0
 public byte[] GetBytes(ID3v2TagVersion tagVersion)
 {
     if (this.Items.Count == 0)
     {
         return(new byte[0]);
     }
     using (MemoryStream stream1 = new MemoryStream())
     {
         stream1.WriteByte((byte)this.m_TextEncoding);
         bool flag1 = false;
         using (IEnumerator <IInvolvedPerson> enumerator1 = this.Items.GetEnumerator())
         {
             while (enumerator1.MoveNext())
             {
                 IInvolvedPerson person1 = enumerator1.Current;
                 if (!string.IsNullOrEmpty(person1.Involvement) || !string.IsNullOrEmpty(person1.Name))
                 {
                     Utils.Write(stream1, Utils.GetStringBytes(tagVersion, this.m_TextEncoding, person1.Involvement, true));
                     Utils.Write(stream1, Utils.GetStringBytes(tagVersion, this.m_TextEncoding, person1.Name, true));
                     flag1 = true;
                 }
             }
         }
         if (!flag1)
         {
             return(new byte[0]);
         }
         return(this.m_FrameHeader.GetBytes(stream1, tagVersion, this.GetFrameID(tagVersion)));
     }
 }
コード例 #3
0
 public IssueLogController(IIssueLog issueLogService, IProject projectService, UserManager <ApplicationUser> userManager, INotification notificationService, IInvolvedPerson involvedPersonService)
 {
     _issueLogService       = issueLogService;
     _projectService        = projectService;
     _userManager           = userManager;
     _notificationService   = notificationService;
     _involvedPersonService = involvedPersonService;
 }
コード例 #4
0
        public void Read(TagReadingInfo tagReadingInfo, Stream stream)
        {
            this.m_FrameHeader.Read(tagReadingInfo, ref stream);
            this.m_InvolvedPersons.Clear();
            int num1 = this.m_FrameHeader.FrameSizeExcludingAdditions;

            if (num1 > 0)
            {
                this.TextEncoding = (EncodingType)Utils.ReadByte(stream, ref num1);
                while (num1 > 0)
                {
                    string text1 = Utils.ReadString(this.TextEncoding, stream, ref num1);
                    string text2 = Utils.ReadString(this.TextEncoding, stream, ref num1);
                    if (!string.IsNullOrEmpty(text1) || !string.IsNullOrEmpty(text2))
                    {
                        IInvolvedPerson person1 = this.m_InvolvedPersons.AddNew();
                        person1.Involvement = text1;
                        person1.Name        = text2;
                    }
                }
            }
        }
コード例 #5
0
ファイル: InvolvedPersonList.cs プロジェクト: kiliman/IdSharp
        public override void Read(TagReadingInfo tagReadingInfo, Stream stream)
        {
            _frameHeader.Read(tagReadingInfo, ref stream);
            _involvedPersons.Clear();

            int bytesLeft = _frameHeader.FrameSizeExcludingAdditions;

            if (bytesLeft > 0)
            {
                TextEncoding = (EncodingType)stream.Read1(ref bytesLeft);
                while (bytesLeft > 0)
                {
                    string involvement = ID3v2Utils.ReadString(TextEncoding, stream, ref bytesLeft);
                    string name        = ID3v2Utils.ReadString(TextEncoding, stream, ref bytesLeft);

                    if (!string.IsNullOrEmpty(involvement) || !string.IsNullOrEmpty(name))
                    {
                        IInvolvedPerson involvedPerson = _involvedPersons.AddNew();
                        involvedPerson.Involvement = involvement;
                        involvedPerson.Name        = name;
                    }
                }
            }
        }
コード例 #6
0
 public InvolvedPersonController(IInvolvedPerson involvedPersonService, UserManager <ApplicationUser> userManager, INotification notificationService)
 {
     _involvedPersonService = involvedPersonService;
     _userManager           = userManager;
     _notificationService   = notificationService;
 }
コード例 #7
0
 public HomeController(IInvolvedPerson involvedPersonService, UserManager <ApplicationUser> userManager, IProject projectService)
 {
     _involvedPersonService = involvedPersonService;
     _userManager           = userManager;
     _projectService        = projectService;
 }