protected virtual LocationUploadedMessage CreateLocationUploadedEventArgs(Stream stream) { var args = new LocationUploadedMessage(this); args.ContentLength = stream.Length; OnLocationUploadedEventCreated(args); return(args); }
protected virtual LocationUploadedMessage CreateLocationUploadedEventArgs(string fileName) { var args = new LocationUploadedMessage(this); args.ContentLength = new FileInfo(fileName).Length; OnLocationUploadedEventCreated(args); return(args); }
protected virtual LocationUploadedMessage CreateLocationUploadedEventArgs(byte[] buffer) { var args = new LocationUploadedMessage(this); args.ContentLength = buffer.LongLength; OnLocationUploadedEventCreated(args); return(args); }
protected virtual void OnLocationUploadedEventCreated(LocationUploadedMessage args) { }