Beispiel #1
0
        protected virtual LocationUploadedMessage CreateLocationUploadedEventArgs(Stream stream)
        {
            var args = new LocationUploadedMessage(this);

            args.ContentLength = stream.Length;

            OnLocationUploadedEventCreated(args);

            return(args);
        }
Beispiel #2
0
        protected virtual LocationUploadedMessage CreateLocationUploadedEventArgs(string fileName)
        {
            var args = new LocationUploadedMessage(this);

            args.ContentLength = new FileInfo(fileName).Length;

            OnLocationUploadedEventCreated(args);

            return(args);
        }
Beispiel #3
0
        protected virtual LocationUploadedMessage CreateLocationUploadedEventArgs(byte[] buffer)
        {
            var args = new LocationUploadedMessage(this);

            args.ContentLength = buffer.LongLength;

            OnLocationUploadedEventCreated(args);

            return(args);
        }
Beispiel #4
0
 protected virtual void OnLocationUploadedEventCreated(LocationUploadedMessage args)
 {
 }