Ejemplo n.º 1
0
        /// <summary>
        /// Called when [update access range].
        /// </summary>
        /// <param name="begin">The begin.</param>
        /// <param name="end">The end.</param>
        protected virtual void OnUpdateAccessRange(long begin, long end)
        {
            EventHandler <TFilePermissionEventArgs> handler = this.UpdateAccessRange;

            if (handler != null)
            {
                TFilePermissionEventArgs e = new TFilePermissionEventArgs(begin, end);
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Called when [update access range].
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="Simon.SharpStreaming.Core.TFilePermissionEventArgs"/> instance containing the event data.</param>
 protected virtual void OnUpdateAccessRange(object sender, TFilePermissionEventArgs e)
 {
     UpdateAccessRange(e.BeginOffset, e.EndOffset);
 }